void UpdateRole_SizeChanged(object sender, SizeChangedEventArgs e) { DockPanel wp = this.FindName("panel") as DockPanel; wp.Width = e.NewSize.Width; RadDataPager rdp = this.FindName("page") as RadDataPager; RadNumericUpDown nud = this.FindName("pagesize") as RadNumericUpDown; rdp.Width = e.NewSize.Width - nud.Width; }
void Search_SizeChanged(object sender, SizeChangedEventArgs e) { DockPanel wp = this.FindName("panel") as DockPanel; wp.Width = e.NewSize.Width; RadDataPager rdp = this.FindName("page") as RadDataPager; RadNumericUpDown nud = this.FindName("pagesize") as RadNumericUpDown; rdp.Width = e.NewSize.Width - nud.Width; outline.Width = txt.ActualWidth - txtblock.ActualWidth; }
protected override Control GetControl() { DependencyProperty dependencyProperty = this.GetControlBindingProperty(); RadNumericUpDown numericUpDown = new RadNumericUpDown(); if (this.DataMemberBinding != null) { var binding = this.DataMemberBinding; numericUpDown.SetBinding(dependencyProperty, binding); } numericUpDown.SetBinding(RadNumericUpDown.IsEnabledProperty, new Binding("IsReadOnly") { Source = this, Converter = new InvertedBooleanConverter() }); return numericUpDown; }
//Очищення RadNumericUpDown public void ClearRadNumericUpDown(DependencyObject obj) { RadNumericUpDown numericUpDown = obj as RadNumericUpDown; if (numericUpDown != null) { numericUpDown.Value = null; } for (int i = 0; i < VisualTreeHelper.GetChildrenCount(obj as DependencyObject); i++) { ClearRadNumericUpDown(VisualTreeHelper.GetChild(obj, i)); } }
protected override System.Windows.Controls.Control GetControl() { var numeric = new RadNumericUpDown() { Minimum = 1, Maximum = 5, IsInteger = true }; if (this.DataMemberBinding != null) { numeric.SetBinding(this.GetControlBindingProperty(), this.DataMemberBinding); } return(numeric); }
protected override Control GetControl() { DependencyProperty dependencyProperty = this.GetControlBindingProperty(); RadNumericUpDown numericUpDown = new RadNumericUpDown(); if (this.DataMemberBinding != null) { var binding = this.DataMemberBinding; numericUpDown.SetBinding(dependencyProperty, binding); } numericUpDown.SetBinding(RadNumericUpDown.IsEnabledProperty, new Binding("IsReadOnly") { Source = this, Converter = new InvertedBooleanConverter() }); return(numericUpDown); }
void AddKey_SizeChanged(object sender, SizeChangedEventArgs e) { DockPanel wp = this.FindName("panel") as DockPanel; wp.Width = e.NewSize.Width; RadDataPager rdp = this.FindName("page") as RadDataPager; RadNumericUpDown nud = this.FindName("pagesize") as RadNumericUpDown; rdp.Width = e.NewSize.Width - nud.Width; //DockPanel wp2 = this.FindName("panel2") as DockPanel; //wp2.Width = e.NewSize.Width; //RadDataPager rdp2 = this.FindName("page2") as RadDataPager; //RadNumericUpDown nud2 = this.FindName("pagesize2") as RadNumericUpDown; //rdp2.Width = e.NewSize.Width - nud2.Width; }
void IComponentConnector.Connect(int connectionId, object target) { int num1 = connectionId; label_1: int num2 = 429600572; while (true) { int num3 = 1382891384; uint num4; switch ((num4 = (uint)(num2 ^ num3)) % 51U) { case 0: label_6: this.cbTraceWindowEvents = (CheckBox)target; num2 = 419668234; continue; case 1: label_10: this.cbTraceActivityEvents = (CheckBox)target; num2 = 2033304098; continue; case 2: num2 = (int)num4 * 1744519222 ^ 979686193; continue; case 3: num2 = (int)num4 * 994445811 ^ -77658749; continue; case 4: num2 = (int)num4 * -436618530 ^ -392227786; continue; case 5: goto label_3; case 6: label_39: this.cbAutoLayoutsDefaultStretchingEnabled = (CheckBox)target; num2 = 792223346; continue; case 7: num2 = (int)num4 * -1575930965 ^ -220103484; continue; case 8: label_19: this.cbOnHoldAction = (ComboBox)target; num2 = 356975739; continue; case 9: label_12: this.nudMinimumUserCount = (RadNumericUpDown)target; num2 = 203952805; continue; case 10: label_30: this.cbTraceLayoutEvents = (CheckBox)target; num2 = 1311491623; continue; case 11: num2 = (int)num4 * 975832450 ^ 1640741652; continue; case 12: num2 = (int)num4 * -1043496613 ^ -1053373003; continue; case 13: label_14: this.cbDisplayHighlightWindows = (CheckBox)target; num2 = 1341574999; continue; case 14: num2 = (int)num4 * 166490357 ^ -1363060605; continue; case 15: num2 = (int)num4 * 2141568272 ^ -2124467376; continue; case 16: label_26: this.cbHammerAfterRemoved = (CheckBox)target; num2 = 506446336; continue; case 17: num2 = (int)num4 * 1275732532 ^ 1018569192; continue; case 18: label_53: this.cbTraceUserInterfaceEvents = (CheckBox)target; num2 = 1762212733; continue; case 19: num2 = (int)num4 * -205803669 ^ 837003422; continue; case 20: goto label_1; case 21: num2 = (int)num4 * 2054156587 ^ 884015903; continue; case 22: num2 = (int)num4 * -1493406778 ^ -1536678062; continue; case 23: num2 = (int)num4 * -405603139 ^ 1071941969; continue; case 24: num2 = (int)num4 * 1183022939 ^ -1545436206; continue; case 25: num2 = (int)num4 * 1766249601 ^ -287881056; continue; case 26: label_8: SettingsControl.\u206B((FrameworkElement)target, new RoutedEventHandler(this.UserControl_Loaded)); num2 = 1280878585; continue; case 27: label_24: this.cbMoveNextAfterRemoved = (CheckBox)target; num2 = 674005018; continue; case 28: num2 = (int)num4 * 1267778348 ^ 1768425540; continue; case 29: label_4: this.cbTraceImageEvents = (CheckBox)target; num2 = 1361891182; continue; case 30: label_38: this.cbCheckCapabilitiesAfterJoin = (CheckBox)target; num2 = 952839005; continue; case 31: label_7: this.cbEnabledVideoToChatLinking = (CheckBox)target; num2 = 1025738200; continue; case 32: label_35: this.cbTraceChatEvents = (CheckBox)target; num2 = 1799790409; continue; case 33: label_22: this.cbFindButtonsAfterJoin = (CheckBox)target; num2 = 738932203; continue; case 34: num2 = (int)num4 * 912542135 ^ -119825431; continue; case 35: label_37: this.cbTraceHookEvents = (CheckBox)target; num2 = 506446336; continue; case 36: num2 = (int)num4 * 1446674836 ^ -1887821572; continue; case 37: label_50: this.nudMaximumAttendenceDuration = (RadNumericUpDown)target; num2 = 506446336; continue; case 38: label_16: this.cbTraceUserEvents = (CheckBox)target; num2 = 1460382; continue; case 39: label_11: this.cbTraceMeetingEvents = (CheckBox)target; num2 = 215865478; continue; case 40: label_33: this.cbMinimumUserEnforced = (CheckBox)target; num2 = 506446336; continue; case 41: num2 = (int)num4 * -1403807120 ^ -1503557344; continue; case 42: label_13: this.cbAutoAttendence = (CheckBox)target; num2 = 367423597; continue; case 43: label_25: this.cbTraceDataStorage = (CheckBox)target; num2 = 161163051; continue; case 44: num2 = (int)num4 * -779956749 ^ -852607150; continue; case 45: label_51: this.cbTraceApplicationEvents = (CheckBox)target; num2 = 1160258102; continue; case 46: num2 = (int)num4 * -2051876445 ^ 1396376746; continue; case 47: label_20: this.cbMaximumAttendenceDuration = (CheckBox)target; num2 = 506446336; continue; case 48: switch (num1) { case 1: goto label_8; case 2: goto label_14; case 3: goto label_7; case 4: goto label_39; case 5: goto label_13; case 6: goto label_33; case 7: goto label_12; case 8: goto label_20; case 9: goto label_50; case 10: goto label_38; case 11: goto label_22; case 12: goto label_24; case 13: goto label_26; case 14: goto label_19; case 15: goto label_37; case 16: goto label_6; case 17: goto label_35; case 18: goto label_10; case 19: goto label_11; case 20: goto label_25; case 21: goto label_30; case 22: goto label_4; case 23: goto label_16; case 24: goto label_53; case 25: goto label_51; default: num2 = (int)num4 * 61456887 ^ 776601015; continue; } case 49: num2 = (int)num4 * 392503612 ^ -1350822216; continue; case 50: this._contentLoaded = true; num2 = 506446336; continue; default: goto label_54; } } label_54: return; label_3 :; }
private bool CanModifyValue(RadNumericUpDown ctrl, out double val) { val = ctrl != null ? Math.Max(ctrl.Minimum, 0) : 0; return ctrl != null && ctrl.Value.HasValue && Double.TryParse(ctrl.ContentText, out val) && Math.Abs(val - ctrl.Value.Value) < Math.Pow(10, -25); }
void IComponentConnector.Connect(int connectionId, object target) { int num1; switch (connectionId) { case 1: label_8: this.cbEnabledVideoToChatLinking = (CheckBox)target; num1 = -523244409; break; case 2: label_9: this.cbAutoCaptureVideoImages = (CheckBox)target; num1 = -1613334102; break; case 3: label_5: this.nudAutoCaptureVideoInterval = (RadNumericUpDown)target; num1 = -1089101313; break; default: label_1: num1 = -1453788247; break; } while (true) { int num2 = -185484815; uint num3; switch ((num3 = (uint)(num1 ^ num2)) % 9U) { case 0: goto label_1; case 1: goto label_8; case 2: goto label_5; case 3: num1 = (int)num3 * -218824921 ^ -1295911088; continue; case 4: num1 = (int)num3 * -1682782974 ^ 1998966498; continue; case 5: goto label_9; case 6: goto label_3; case 7: this._contentLoaded = true; num1 = -1613334102; continue; case 8: num1 = (int)num3 * -1672487985 ^ -310176520; continue; default: goto label_11; } } label_11: return; label_3 :; }