上一页 1 ··· 6 7 8 9 10 11 12 13 14 ··· 22 下一页
摘要: int iGroupRowHandle = this.gridControlView.FocusedRowHandle; if (iGroupRowHandle 0) { int childRowHandle = this.gridControl.GetChildRowHandle(iGroupRowHandle,0); if (childRowHandle > -1) { object... 阅读全文
posted @ 2014-01-23 19:39 quietwalk 阅读(1105) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2014-01-23 19:38 quietwalk 阅读(1852) 评论(0) 推荐(0) 编辑
摘要: 在分组排序的基础上加上: 阅读全文
posted @ 2014-01-23 19:36 quietwalk 阅读(186) 评论(0) 推荐(0) 编辑
摘要: 方法一:纯代码this.list.gridControl.ItemsSource = lsItem; this.list.gridControl.GroupBy("GroupTitle"); this.list.gridControl.Columns["GroupTitle"].SortOrder = ColumnSortOrder.Descending; //this.list.gridControl.SortBy(this.list.gridControl.Columns["GroupTitle"],... 阅读全文
posted @ 2014-01-23 19:34 quietwalk 阅读(1775) 评论(0) 推荐(0) 编辑
摘要: private DispatcherTimer _timer; private void SetTimeElaspInStatusBar() { try { _timer = new DispatcherTimer(); _timer.Tick += (sender, e) => { DateTime dtNow = DateTime.Now; ... 阅读全文
posted @ 2014-01-23 19:31 quietwalk 阅读(358) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2014-01-23 19:30 quietwalk 阅读(409) 评论(0) 推荐(0) 编辑
摘要: ... 阅读全文
posted @ 2014-01-23 19:26 quietwalk 阅读(673) 评论(0) 推荐(0) 编辑
摘要: DisplayMember="ComboItemName" ValueMember="ComboItemCode"IsTextEditable="True" 是否可修改ValidateOnTextInput="False" 输入时不验证 阅读全文
posted @ 2014-01-23 19:25 quietwalk 阅读(196) 评论(0) 推荐(0) 编辑
摘要: ... 阅读全文
posted @ 2014-01-23 19:24 quietwalk 阅读(976) 评论(0) 推荐(0) 编辑
摘要: ... 阅读全文
posted @ 2014-01-23 19:22 quietwalk 阅读(1421) 评论(0) 推荐(0) 编辑
摘要: ... 阅读全文
posted @ 2014-01-23 19:19 quietwalk 阅读(1281) 评论(0) 推荐(0) 编辑
摘要: 1)定义模板资源 2)使用模板资源 阅读全文
posted @ 2014-01-23 19:12 quietwalk 阅读(1709) 评论(0) 推荐(1) 编辑
摘要: 1)可以使绑定控件与基础数据源保持同步2)还可以在您添加、删除、移动、刷新或替换集合中的项目时引发 CollectionChanged 事件3)还可以在您的窗口以外的代码修改基础数据时做出反应4)相互转换T tList = new List(tObjectStruct .ToList()); ObservableCollection tObjectStruct = new ObservableCollection(tList); 都在构造函数中即可完成也可以:tList.ForEach(p => tObjectStruct.Add(t)); ObservableCollection类的. 阅读全文
posted @ 2014-01-23 19:09 quietwalk 阅读(1181) 评论(0) 推荐(0) 编辑
摘要: private void ruleListView_MouseDoubleClick(object sender, MouseButtonEventArgs e) { ListViewItem item = Utilities.GetVisualParent((UIElement)Mouse.DirectlyOver); if (item == null) return; Cdsrule rule = item.Content as Cdsrule; if (rule != null) ... 阅读全文
posted @ 2014-01-23 19:08 quietwalk 阅读(1182) 评论(0) 推荐(0) 编辑
摘要: 1)根据名称查找 PrintPreview fe = new PrintPreview(new Summary()); string strResourceHeader = "headerStyle" + styleSize.ToString(); HeaderStyle = (Style)fe.FindResource(strResourceHeader);2)根据名称直接获取 Style baseStyle = this.Resources["gridRowStyle"] as Style; 阅读全文
posted @ 2014-01-23 19:06 quietwalk 阅读(344) 评论(0) 推荐(0) 编辑
摘要: OpenFileDialog dialog = new OpenFileDialog(); dialog.Filter = "All Files (*.*)|*.*"; dialog.Multiselect = false; if (dialog.ShowDialog() == true) { txtKeyPath.Text = dialog.FileName; } 阅读全文
posted @ 2014-01-23 19:05 quietwalk 阅读(228) 评论(0) 推荐(0) 编辑
摘要: ... 阅读全文
posted @ 2014-01-23 19:04 quietwalk 阅读(288) 评论(0) 推荐(0) 编辑
摘要: < > = <= >= <> 阅读全文
posted @ 2014-01-23 19:03 quietwalk 阅读(191) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2014-01-23 19:02 quietwalk 阅读(3826) 评论(0) 推荐(0) 编辑
摘要: 1)由控件获取内容:ListViewItem item = Utilities.GetVisualParent(chx); if (item == null) return; ListView2.SelectedItems.Clear(); item.IsSelected = true; Outpatient outpatient = item.Content as Outpatient;2) Patientappointment appointment = ListView... 阅读全文
posted @ 2014-01-23 19:01 quietwalk 阅读(239) 评论(0) 推荐(0) 编辑
摘要: private void ListView1_MouseMove(object sender, MouseEventArgs e) { Patientappointment appointment = ListView1.SelectedItem as Patientappointment; if (appointment != null) { SelectedAppointment = appointment; if (e.LeftButton == ... 阅读全文
posted @ 2014-01-23 19:00 quietwalk 阅读(500) 评论(0) 推荐(0) 编辑
摘要: 1.GetVisualParentpublic static T GetVisualParent(DependencyObject obj) where T : DependencyObject{DependencyObject parent = obj;while (true){if (parent == null) return null;T t = parent as T;if (t != null) return t;parent = VisualTreeHelper.GetParent(parent);}}使用示例代码: Button btn = sender as Button; 阅读全文
posted @ 2014-01-23 18:59 quietwalk 阅读(562) 评论(0) 推荐(0) 编辑
摘要: ... 阅读全文
posted @ 2014-01-23 18:56 quietwalk 阅读(740) 评论(0) 推荐(0) 编辑
摘要: PickPatientReminderTableDialog dialog = new PickPatientReminderTableDialog(); dialog.Owner = Application.Current.Windows.Cast().SingleOrDefault(x => x.IsActive); 阅读全文
posted @ 2014-01-23 18:54 quietwalk 阅读(378) 评论(0) 推荐(0) 编辑
摘要: private void TextBox_TextChanged(object sender, TextChangedEventArgs e) { TextBox textBox = sender as TextBox; TextChange[] change = new TextChange[e.Changes.Count]; e.Changes.CopyTo(change, 0); int offset = change[0].Offset; if (change[0... 阅读全文
posted @ 2014-01-23 18:53 quietwalk 阅读(631) 评论(0) 推荐(0) 编辑
摘要: 1)不应当设置硬编码的高度,这样不能适应不同的字体大小,并且可能导致布局问题。2)可以使用方便的 MinLines和 MaxLines属性,设置在文本框中必须显示的最小行数。3)从代码中,可以检查 LineCount 属性准确地获取文本框中一共有多少行。4)在文本内容中移动:LineUp(); LineDown(); PageUp(); PageDown(); ScrollToHome();ScrollToEnd(); ScrollToLine 阅读全文
posted @ 2014-01-23 18:52 quietwalk 阅读(183) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2014-01-23 18:51 quietwalk 阅读(355) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2014-01-23 18:49 quietwalk 阅读(408) 评论(0) 推荐(0) 编辑
摘要: 获取主窗口的引用:Window main=Application.Current.MainWindow获取程序中打开的所有窗口:Application.Currrent.Windows(在一个自定义应用程序类中保存那些需要用到的窗口的引用可能更有意义) 阅读全文
posted @ 2014-01-23 18:49 quietwalk 阅读(133) 评论(0) 推荐(0) 编辑
摘要: /// /// AsynchronousLoading class /// public static class AsynchronousLoading { /// /// AsyncInvokeHandler delegate /// /// object public delegate object AsyncInvokeHandler(); /// /// AsyncInvokeCallbackHandler /// ... 阅读全文
posted @ 2014-01-23 18:48 quietwalk 阅读(682) 评论(0) 推荐(0) 编辑
上一页 1 ··· 6 7 8 9 10 11 12 13 14 ··· 22 下一页