public override void OnApplyTemplate() { if (ColorRampControl != null) ColorRampControl.ColorGradientChosen -= ColorRampControl_GradientBrushChanged; if (ClassBreaksNumericUpDown != null) { ClassBreaksNumericUpDown.ValueChanged -= ClassBreaksNumericUpDown_ValueChanged; ClassBreaksNumericUpDown.ValueChanging -= ClassBreaksNumericUpDown_ValueChanging; } base.OnApplyTemplate(); ColorRampControl = GetTemplateChild(PART_COLORRAMPCONTROL) as ColorRampControl; ClassBreaksNumericUpDown = GetTemplateChild(PART_CLASSBREAKSNUMERICUPDOWN) as NumericUpDown; bindUIToRenderer(); // bind before attaching to event handlers if (ColorRampControl != null) ColorRampControl.ColorGradientChosen += ColorRampControl_GradientBrushChanged; if (ClassBreaksNumericUpDown != null) { ClassBreaksNumericUpDown.ValueChanged += ClassBreaksNumericUpDown_ValueChanged; ClassBreaksNumericUpDown.ValueChanging += ClassBreaksNumericUpDown_ValueChanging; } if (InitCompleted != null) InitCompleted(this, EventArgs.Empty); }
protected override FrameworkElement GenerateEditingElement(DataGridCell cell, object dataItem) { NumericUpDown numericUpDown = new NumericUpDown(); ApplyColumnProperties(numericUpDown); numericUpDown.VerticalAlignment = VerticalAlignment.Center; return numericUpDown; }
void ApplyColumnProperties(NumericUpDown numericUpDown) { Util.SyncColumnProperty(this, numericUpDown, NumericUpDown.MaximumProperty, MaximumProperty); Util.SyncColumnProperty(this, numericUpDown, NumericUpDown.MinimumProperty, MinimumProperty); Util.SyncColumnProperty(this, numericUpDown, NumericUpDown.FormatStringProperty, FormatStringProperty); Util.ApplyBinding(Binding, numericUpDown, NumericUpDown.ValueProperty); }
public override void OnApplyTemplate() { if (MaxPointsUpDown != null) MaxPointsUpDown.ValueChanged -= MaxPointsUpDown_ValueChanged; if (BackgroundColorSelector != null) BackgroundColorSelector.ColorPicked -= BackgroundColorSelector_ColorPicked; if (RadiusUpDown != null) RadiusUpDown.ValueChanged -= RadiusUpDown_ValueChanged; if (ForegroundColorSelector != null) ForegroundColorSelector.ColorPicked -= ForegroundColorSelector_ColorPicked; base.OnApplyTemplate(); MaxPointsUpDown = GetTemplateChild(PART_MaxPointsUpDown) as NumericUpDown; if (MaxPointsUpDown != null) MaxPointsUpDown.ValueChanged += MaxPointsUpDown_ValueChanged; BackgroundColorSelector = GetTemplateChild(PART_BackgroundColorSelector) as SolidColorBrushSelector; if (BackgroundColorSelector != null) BackgroundColorSelector.ColorPicked += BackgroundColorSelector_ColorPicked; RadiusUpDown = GetTemplateChild(PART_RadiusUpDown) as NumericUpDown; if (RadiusUpDown != null) RadiusUpDown.ValueChanged += RadiusUpDown_ValueChanged; ForegroundColorSelector = GetTemplateChild(PART_ForegroundColorSelector) as SolidColorBrushSelector; if (ForegroundColorSelector != null) ForegroundColorSelector.ColorPicked += ForegroundColorSelector_ColorPicked; bindUI(); if (InitCompleted != null) InitCompleted(this, EventArgs.Empty); }
public ValueFilterControl() { Grid LayoutRoot = new Grid(); LayoutRoot.ColumnDefinitions.Add(new ColumnDefinition() { Width = new GridLength(2, GridUnitType.Star) }); LayoutRoot.ColumnDefinitions.Add(new ColumnDefinition() { Width = new GridLength(2, GridUnitType.Star) }); LayoutRoot.ColumnDefinitions.Add(new ColumnDefinition()); LayoutRoot.ColumnDefinitions.Add(new ColumnDefinition() { Width = GridLength.Auto }); LayoutRoot.ColumnDefinitions.Add(new ColumnDefinition()); LayoutRoot.RowDefinitions.Add(new RowDefinition()); LayoutRoot.RowDefinitions.Add(new RowDefinition() { Height = new GridLength(24) }); LayoutRoot.RowDefinitions.Add(new RowDefinition()); // Мера куба comboMeasure = new MeasuresCombo() { Margin = new Thickness(0) }; LayoutRoot.Children.Add(comboMeasure); Grid.SetColumn(comboMeasure, 0); Grid.SetRow(comboMeasure, 1); // Тип фильтра comboFilterType = new ValueFilterTypeCombo() { Margin = new Thickness(5, 0, 0, 0) }; comboFilterType.SelectionChanged += new SelectionChangedEventHandler(comboFilterType_SelectionChanged); LayoutRoot.Children.Add(comboFilterType); Grid.SetRow(comboFilterType, 1); Grid.SetColumn(comboFilterType, 1); // Количество записей numCount_1 = new NumericUpDown() { Margin = new Thickness(5,0,0,0) }; numCount_1.DecimalPlaces = 2; numCount_1.Increment = 1; numCount_1.Minimum = int.MinValue; numCount_1.Maximum = int.MaxValue; numCount_1.Value = 0; LayoutRoot.Children.Add(numCount_1); Grid.SetRow(numCount_1, 1); Grid.SetColumn(numCount_1, 2); // Текст "и" lblAnd = new TextBlock() { Text = Localization.Filter_Label_And, TextAlignment = TextAlignment.Center, VerticalAlignment = VerticalAlignment.Bottom, Margin = new Thickness(5, 0, 0, 0) }; LayoutRoot.Children.Add(lblAnd); Grid.SetColumn(lblAnd, 3); Grid.SetRow(lblAnd, 1); // Количество записей numCount_2 = new NumericUpDown() { Margin = new Thickness(5, 0, 0, 0) }; numCount_2.DecimalPlaces = 2; numCount_2.Increment = 1; numCount_2.Minimum = int.MinValue; numCount_2.Maximum = int.MaxValue; numCount_2.Value = 1; LayoutRoot.Children.Add(numCount_2); Grid.SetRow(numCount_2, 1); Grid.SetColumn(numCount_2, 4); this.Content = LayoutRoot; Refresh(); }
public void TestActualWidthOfNumericUpDownControl() { NumericUpDown nud = new NumericUpDown(); nud.Width = 150; TestAsync( nud, () => Assert.AreEqual(nud.ActualWidth, nud.Width)); }
public virtual void NumericUpDownAutomationPeerTypeAndClass() { NumericUpDown item = new NumericUpDown(); NumericUpDownAutomationPeer peer = null; TestAsync( item, () => peer = FrameworkElementAutomationPeer.CreatePeerForElement(item) as NumericUpDownAutomationPeer, () => Assert.AreEqual(AutomationControlType.Spinner, peer.GetAutomationControlType(), "Unexpected AutomationControlType!"), () => Assert.AreEqual("NumericUpDown", peer.GetClassName(), "Unexpected ClassType!")); }
public void InitializeComponent() { if (_contentLoaded) { return; } _contentLoaded = true; System.Windows.Application.LoadComponent(this, new System.Uri("/Galatee.Silverlight;component/Precontentieux/Moratoire/FrmCreationMoratoire.xaml" + "", System.UriKind.Relative)); this.LayoutRoot = ((System.Windows.Controls.Grid)(this.FindName("LayoutRoot"))); this.groupBox2 = ((SilverlightContrib.Controls.GroupBox)(this.FindName("groupBox2"))); this.groupBox3 = ((SilverlightContrib.Controls.GroupBox)(this.FindName("groupBox3"))); this.groupBox4 = ((SilverlightContrib.Controls.GroupBox)(this.FindName("groupBox4"))); this.groupBox5 = ((SilverlightContrib.Controls.GroupBox)(this.FindName("groupBox5"))); this.groupBox6 = ((SilverlightContrib.Controls.GroupBox)(this.FindName("groupBox6"))); this.groupBox2_Copy = ((SilverlightContrib.Controls.GroupBox)(this.FindName("groupBox2_Copy"))); this.txtReference = ((System.Windows.Controls.TextBox)(this.FindName("txtReference"))); this.label2 = ((System.Windows.Controls.Label)(this.FindName("label2"))); this.txtClientName = ((System.Windows.Controls.TextBox)(this.FindName("txtClientName"))); this.rdbMoratoireEntier = ((System.Windows.Controls.RadioButton)(this.FindName("rdbMoratoireEntier"))); this.rdbMoratoireFacture = ((System.Windows.Controls.RadioButton)(this.FindName("rdbMoratoireFacture"))); this.label6 = ((System.Windows.Controls.Label)(this.FindName("label6"))); this.txtSoldeDue = ((System.Windows.Controls.TextBox)(this.FindName("txtSoldeDue"))); this.label9 = ((System.Windows.Controls.Label)(this.FindName("label9"))); this.cboNoInstall = ((System.Windows.Controls.ComboBox)(this.FindName("cboNoInstall"))); this.btnCancel = ((System.Windows.Controls.Button)(this.FindName("btnCancel"))); this.btnPrintQuote = ((System.Windows.Controls.Button)(this.FindName("btnPrintQuote"))); this.btnCalcul = ((System.Windows.Controls.Button)(this.FindName("btnCalcul"))); this.rdbFornight = ((System.Windows.Controls.RadioButton)(this.FindName("rdbFornight"))); this.rdbMonth = ((System.Windows.Controls.RadioButton)(this.FindName("rdbMonth"))); this.rdbWeek = ((System.Windows.Controls.RadioButton)(this.FindName("rdbWeek"))); this.label10 = ((System.Windows.Controls.Label)(this.FindName("label10"))); this.label11 = ((System.Windows.Controls.Label)(this.FindName("label11"))); this.btncancel = ((System.Windows.Controls.Button)(this.FindName("btncancel"))); this.btnOk = ((System.Windows.Controls.Button)(this.FindName("btnOk"))); this.button3 = ((System.Windows.Controls.Button)(this.FindName("button3"))); this.label2_Copy = ((System.Windows.Controls.Label)(this.FindName("label2_Copy"))); this.txtClientAdresse = ((System.Windows.Controls.TextBox)(this.FindName("txtClientAdresse"))); this.label8_Copy1 = ((System.Windows.Controls.Label)(this.FindName("label8_Copy1"))); this.txtNbreFactureGlobal = ((System.Windows.Controls.TextBox)(this.FindName("txtNbreFactureGlobal"))); this.label3 = ((System.Windows.Controls.Label)(this.FindName("label3"))); this.label4 = ((System.Windows.Controls.Label)(this.FindName("label4"))); this.label5 = ((System.Windows.Controls.Label)(this.FindName("label5"))); this.Cbo_ListeClient = ((System.Windows.Controls.ComboBox)(this.FindName("Cbo_ListeClient"))); this.label8 = ((System.Windows.Controls.Label)(this.FindName("label8"))); this.txtAmount = ((System.Windows.Controls.TextBox)(this.FindName("txtAmount"))); this.btn_factureClient = ((System.Windows.Controls.Button)(this.FindName("btn_factureClient"))); this.label8_Copy = ((System.Windows.Controls.Label)(this.FindName("label8_Copy"))); this.txtNbreFactureSelect = ((System.Windows.Controls.TextBox)(this.FindName("txtNbreFactureSelect"))); this.prgBar = ((System.Windows.Controls.ProgressBar)(this.FindName("prgBar"))); this.svw = ((System.Windows.Controls.ScrollViewer)(this.FindName("svw"))); this.StckP_Parent = ((System.Windows.Controls.StackPanel)(this.FindName("StckP_Parent"))); this.NumericUpDown = ((System.Windows.Controls.NumericUpDown)(this.FindName("NumericUpDown"))); }
public override void OnApplyTemplate() { base.OnApplyTemplate(); PART_PageIndex = GetTemplateChild("PART_PageIndex") as NumericUpDown; var gotoButton = GetTemplateChild("PART_GotoButton") as Button; gotoButton.Click += new RoutedEventHandler(gotoButton_Click); PART_GotoNextButton = GetTemplateChild("PART_GotoNextButton") as Button; PART_GotoNextButton.Click += (s, e) => { GoToNextPage(); }; PART_GotoPreviousButton = GetTemplateChild("PART_GotoPreviousButton") as Button; PART_GotoPreviousButton.Click += (s, e) => { GoToPreviousPage(); }; }
public override void OnApplyTemplate() { if (PollForUpdates != null) { PollForUpdates.Checked -= PollForUpdates_Checked; PollForUpdates.Unchecked -= PollForUpdates_UnChecked; } if (PollInterval != null) PollInterval.ValueChanged -= PollInterval_ValueChanged; if (IntervalType != null) IntervalType.SelectionChanged -= IntervalType_SelectionChanged; if (UpdateOnExtentChanged != null) { UpdateOnExtentChanged.Checked -= UpdateOnExtentChanged_Checked; UpdateOnExtentChanged.Unchecked -= UpdateOnExtentChanged_Unchecked; } base.OnApplyTemplate(); PollForUpdates = GetTemplateChild(PART_POLLFORUPDATES) as CheckBox; PollInterval = GetTemplateChild(PART_POLLINTERVAL) as NumericUpDown; IntervalType = GetTemplateChild(PART_INTERVALTYPE) as ComboBox; UpdateOnExtentChanged = GetTemplateChild(PART_UPDATEONEXTENTCHANGED) as CheckBox; bindUIToLayer(); if (PollForUpdates != null) { PollForUpdates.Checked += PollForUpdates_Checked; PollForUpdates.Unchecked += PollForUpdates_UnChecked; } if (PollInterval != null) PollInterval.ValueChanged += PollInterval_ValueChanged; if (IntervalType != null) IntervalType.SelectionChanged += IntervalType_SelectionChanged; if (UpdateOnExtentChanged != null) { UpdateOnExtentChanged.Checked += UpdateOnExtentChanged_Checked; UpdateOnExtentChanged.Unchecked += UpdateOnExtentChanged_Unchecked; } }
public ZoomingToolBarControl() { Grid LayoutRoot = new Grid(); m_UpDown = new NumericUpDown(); m_UpDown.Minimum = 10; m_UpDown.Maximum = 1000000; m_UpDown.Increment = 10; m_UpDown.Value = 100; Height = 22; Width = 50; this.Margin = new Thickness(2, 0, 0, 0); LayoutRoot.Children.Add(m_UpDown); m_UpDown.ValueChanged += new RoutedPropertyChangedEventHandler<double>(m_UpDown_ValueChanged); this.Content = LayoutRoot; }
public void InitializeComponent() { if (_contentLoaded) { return; } _contentLoaded = true; System.Windows.Application.LoadComponent(this, new System.Uri("/Galatee.Silverlight;component/Parametrage/Wkf/UcWKFSetUtilisateurRang.xaml", System.UriKind.Relative)); this.LayoutRoot = ((System.Windows.Controls.Grid)(this.FindName("LayoutRoot"))); this.GroupBox = ((SilverlightContrib.Controls.GroupBox)(this.FindName("GroupBox"))); this.txtNomPrenoms = ((System.Windows.Controls.TextBox)(this.FindName("txtNomPrenoms"))); this.txtLogin = ((System.Windows.Controls.TextBox)(this.FindName("txtLogin"))); this.NUPRang = ((System.Windows.Controls.NumericUpDown)(this.FindName("NUPRang"))); this.CancelButton = ((System.Windows.Controls.Button)(this.FindName("CancelButton"))); this.OKButton = ((System.Windows.Controls.Button)(this.FindName("OKButton"))); }
public void InitializeComponent() { if (_contentLoaded) { return; } _contentLoaded = true; System.Windows.Application.LoadComponent(this, new System.Uri("/SlvHanbaiClient;component/View/Dlg/Dlg_UnitPriceSetting.xaml", System.UriKind.Relative)); this.LayoutRoot = ((System.Windows.Controls.Grid)(this.FindName("LayoutRoot"))); this.dg = ((SlvHanbaiClient.Class.UI.ExDataGrid)(this.FindName("dg"))); this.dgHeadCd = ((System.Windows.Controls.DataGridTextColumn)(this.FindName("dgHeadCd"))); this.dgHeadNm = ((System.Windows.Controls.DataGridTextColumn)(this.FindName("dgHeadNm"))); this.numUpCreditRate = ((System.Windows.Controls.NumericUpDown)(this.FindName("numUpCreditRate"))); this.txtUnitPrice = ((SlvHanbaiClient.Class.UI.ExTextBox)(this.FindName("txtUnitPrice"))); this.tblbtnF1 = ((System.Windows.Controls.TextBlock)(this.FindName("tblbtnF1"))); this.btnF1 = ((System.Windows.Controls.Button)(this.FindName("btnF1"))); this.btnF12 = ((System.Windows.Controls.Button)(this.FindName("btnF12"))); }
public void InitializeComponent() { if (_contentLoaded) { return; } _contentLoaded = true; System.Windows.Application.LoadComponent(this, new System.Uri("/Galatee.Silverlight;component/Administration/UcGererStrategie.xaml", System.UriKind.Relative)); this.LayoutRoot = ((System.Windows.Controls.Grid)(this.FindName("LayoutRoot"))); this.groupBox1_Copy = ((SilverlightContrib.Controls.GroupBox)(this.FindName("groupBox1_Copy"))); this.groupBox2 = ((SilverlightContrib.Controls.GroupBox)(this.FindName("groupBox2"))); this.ckstatusStrat = ((System.Windows.Controls.CheckBox)(this.FindName("ckstatusStrat"))); this.Btn_Cancel = ((System.Windows.Controls.Button)(this.FindName("Btn_Cancel"))); this.Btn_OK = ((System.Windows.Controls.Button)(this.FindName("Btn_OK"))); this.lbl_label = ((System.Windows.Controls.Label)(this.FindName("lbl_label"))); this.txt_strayegy = ((System.Windows.Controls.TextBox)(this.FindName("txt_strayegy"))); this.lbl_minpwdlimit = ((System.Windows.Controls.Label)(this.FindName("lbl_minpwdlimit"))); this.txt_locksession2 = ((System.Windows.Controls.TextBox)(this.FindName("txt_locksession2"))); this.lbl_pwd = ((System.Windows.Controls.Label)(this.FindName("lbl_pwd"))); this.txt_locksession1 = ((System.Windows.Controls.TextBox)(this.FindName("txt_locksession1"))); this.lbl_locksession = ((System.Windows.Controls.Label)(this.FindName("lbl_locksession"))); this.lbl_minlenght = ((System.Windows.Controls.Label)(this.FindName("lbl_minlenght"))); this.lbl_maxpwdlimit = ((System.Windows.Controls.Label)(this.FindName("lbl_maxpwdlimit"))); this.lbl_standby = ((System.Windows.Controls.Label)(this.FindName("lbl_standby"))); this.ckcreversible = ((System.Windows.Controls.CheckBox)(this.FindName("ckcreversible"))); this.NumUpDown_standby = ((System.Windows.Controls.NumericUpDown)(this.FindName("NumUpDown_standby"))); this.lbl_lockingcounter = ((System.Windows.Controls.Label)(this.FindName("lbl_lockingcounter"))); this.NumUpDown_lockingcounter = ((System.Windows.Controls.NumericUpDown)(this.FindName("NumUpDown_lockingcounter"))); this.lbl_LockedAccont = ((System.Windows.Controls.Label)(this.FindName("lbl_LockedAccont"))); this.NumUpDown_LockedAccont = ((System.Windows.Controls.NumericUpDown)(this.FindName("NumUpDown_LockedAccont"))); this.chck_login_username = ((System.Windows.Controls.CheckBox)(this.FindName("chck_login_username"))); this.NumUpDown_minpwdlimit = ((System.Windows.Controls.NumericUpDown)(this.FindName("NumUpDown_minpwdlimit"))); this.NumUpDown_maxpwdlimit = ((System.Windows.Controls.NumericUpDown)(this.FindName("NumUpDown_maxpwdlimit"))); this.NumUpDown_uppercase = ((System.Windows.Controls.NumericUpDown)(this.FindName("NumUpDown_uppercase"))); this.NumUpDown_connexfail = ((System.Windows.Controls.NumericUpDown)(this.FindName("NumUpDown_connexfail"))); this.NumUpDown_minlenght = ((System.Windows.Controls.NumericUpDown)(this.FindName("NumUpDown_minlenght"))); this.lbl_connexfail = ((System.Windows.Controls.Label)(this.FindName("lbl_connexfail"))); this.lbl_uppercase = ((System.Windows.Controls.Label)(this.FindName("lbl_uppercase"))); this.lbl_lowercase = ((System.Windows.Controls.Label)(this.FindName("lbl_lowercase"))); this.NumUpDown_lowercase = ((System.Windows.Controls.NumericUpDown)(this.FindName("NumUpDown_lowercase"))); this.lbl_digit = ((System.Windows.Controls.Label)(this.FindName("lbl_digit"))); this.NumUpDown_digit = ((System.Windows.Controls.NumericUpDown)(this.FindName("NumUpDown_digit"))); this.lbl_specialchar = ((System.Windows.Controls.Label)(this.FindName("lbl_specialchar"))); this.NumUpDown_specialchar = ((System.Windows.Controls.NumericUpDown)(this.FindName("NumUpDown_specialchar"))); this.lbl_saved = ((System.Windows.Controls.Label)(this.FindName("lbl_saved"))); this.NumUpDown_saved = ((System.Windows.Controls.NumericUpDown)(this.FindName("NumUpDown_saved"))); }
public void InitializeComponent() { if (_contentLoaded) { return; } _contentLoaded = true; System.Windows.Application.LoadComponent(this, new System.Uri("/SlvHanbaiClient;component/View/Dlg/Dlg_UnitPriceSetting.xaml", System.UriKind.Relative)); this.LayoutRoot = ((System.Windows.Controls.Grid)(this.FindName("LayoutRoot"))); this.dg = ((SlvHanbaiClient.Class.UI.ExDataGrid)(this.FindName("dg"))); this.dgHeadCd = ((System.Windows.Controls.DataGridTextColumn)(this.FindName("dgHeadCd"))); this.dgHeadNm = ((System.Windows.Controls.DataGridTextColumn)(this.FindName("dgHeadNm"))); this.numUpCreditRate = ((System.Windows.Controls.NumericUpDown)(this.FindName("numUpCreditRate"))); this.txtUnitPrice = ((SlvHanbaiClient.Class.UI.ExTextBox)(this.FindName("txtUnitPrice"))); this.tblbtnF1 = ((System.Windows.Controls.TextBlock)(this.FindName("tblbtnF1"))); this.btnF1 = ((System.Windows.Controls.Button)(this.FindName("btnF1"))); this.btnF12 = ((System.Windows.Controls.Button)(this.FindName("btnF12"))); }
public void InitializeComponent() { if (_contentLoaded) { return; } _contentLoaded = true; System.Windows.Application.LoadComponent(this, new System.Uri("/Galatee.Silverlight;component/Fraude/UcAnnalyseDeConsommation.xaml", System.UriKind.Relative)); this.LayoutRoot = ((System.Windows.Controls.Grid)(this.FindName("LayoutRoot"))); this.Gbo_Controle = ((SilverlightContrib.Controls.GroupBox)(this.FindName("Gbo_Controle"))); this.CancelButton = ((System.Windows.Controls.Button)(this.FindName("CancelButton"))); this.OKButton = ((System.Windows.Controls.Button)(this.FindName("OKButton"))); this.nudNombreMois = ((System.Windows.Controls.NumericUpDown)(this.FindName("nudNombreMois"))); this.btn_Evenement = ((System.Windows.Controls.Button)(this.FindName("btn_Evenement"))); this.dgvDerniereConsoPart1 = ((System.Windows.Controls.DataGrid)(this.FindName("dgvDerniereConsoPart1"))); this.dgvDerniereConsoPart2 = ((System.Windows.Controls.DataGrid)(this.FindName("dgvDerniereConsoPart2"))); this.dgvDerniereConsoPart3 = ((System.Windows.Controls.DataGrid)(this.FindName("dgvDerniereConsoPart3"))); this.dgvDerniereConsoPart4 = ((System.Windows.Controls.DataGrid)(this.FindName("dgvDerniereConsoPart4"))); this.txtConsommationDejaFacturee = ((System.Windows.Controls.TextBox)(this.FindName("txtConsommationDejaFacturee"))); this.txt_Periode = ((System.Windows.Controls.TextBox)(this.FindName("txt_Periode"))); this.txt_Recherche = ((System.Windows.Controls.Button)(this.FindName("txt_Recherche"))); }
public void InitializeComponent() { if (_contentLoaded) { return; } _contentLoaded = true; System.Windows.Application.LoadComponent(this, new System.Uri("/Galatee.Silverlight;component/Rpnt/Campagnes/BTA/Campagnes/AffecteClientCampagne" + ".xaml", System.UriKind.Relative)); this.LayoutRoot = ((System.Windows.Controls.Grid)(this.FindName("LayoutRoot"))); this.cbxmethrech = ((System.Windows.Controls.ComboBox)(this.FindName("cbxmethrech"))); this.lblmethrech = ((System.Windows.Controls.Label)(this.FindName("lblmethrech"))); this.dgparam = ((System.Windows.Controls.DataGrid)(this.FindName("dgparam"))); this.cbxtypeclient = ((System.Windows.Controls.ComboBox)(this.FindName("cbxtypeclient"))); this.cbxcompteur = ((System.Windows.Controls.ComboBox)(this.FindName("cbxcompteur"))); this.cbxtarif = ((System.Windows.Controls.ComboBox)(this.FindName("cbxtarif"))); this.cbxagetzone = ((System.Windows.Controls.ComboBox)(this.FindName("cbxagetzone"))); this.lbl_Periode = ((System.Windows.Controls.Label)(this.FindName("lbl_Periode"))); this.bntLoadClient = ((System.Windows.Controls.Button)(this.FindName("bntLoadClient"))); this.dgclientselectionne = ((System.Windows.Controls.DataGrid)(this.FindName("dgclientselectionne"))); this.dgClientEligible = ((System.Windows.Controls.DataGrid)(this.FindName("dgClientEligible"))); this.Decharger = ((System.Windows.Controls.Button)(this.FindName("Decharger"))); this.CancelButton = ((System.Windows.Controls.Button)(this.FindName("CancelButton"))); this.OKButton = ((System.Windows.Controls.Button)(this.FindName("OKButton"))); this.label3 = ((System.Windows.Controls.Label)(this.FindName("label3"))); this.txtCentre = ((System.Windows.Controls.TextBox)(this.FindName("txtCentre"))); this.Cbo_Centre = ((System.Windows.Controls.ComboBox)(this.FindName("Cbo_Centre"))); this.txt_Periode = ((System.Windows.Controls.TextBox)(this.FindName("txt_Periode"))); this.lbl_comparaison_periode1 = ((System.Windows.Controls.Label)(this.FindName("lbl_comparaison_periode1"))); this.txt_comparaison_periode1 = ((System.Windows.Controls.TextBox)(this.FindName("txt_comparaison_periode1"))); this.lbl_comparaison_periode2 = ((System.Windows.Controls.Label)(this.FindName("lbl_comparaison_periode2"))); this.txt_comparaison_periode2 = ((System.Windows.Controls.TextBox)(this.FindName("txt_comparaison_periode2"))); this.lbl_Cas = ((System.Windows.Controls.Label)(this.FindName("lbl_Cas"))); this.txt_Code_Cas = ((System.Windows.Controls.TextBox)(this.FindName("txt_Code_Cas"))); this.lbl_Nombre_Recurence = ((System.Windows.Controls.Label)(this.FindName("lbl_Nombre_Recurence"))); this.NumUpD_Nombre_Recurence = ((System.Windows.Controls.NumericUpDown)(this.FindName("NumUpD_Nombre_Recurence"))); this.cbxcas = ((System.Windows.Controls.ComboBox)(this.FindName("cbxcas"))); this.NumUpD_Pourcentatge = ((System.Windows.Controls.NumericUpDown)(this.FindName("NumUpD_Pourcentatge"))); }
public void InitializeComponent() { if (_contentLoaded) { return; } _contentLoaded = true; System.Windows.Application.LoadComponent(this, new System.Uri("/Galatee.Silverlight;component/Devis/UcControle.xaml", System.UriKind.Relative)); this.LayoutRoot = ((System.Windows.Controls.Grid)(this.FindName("LayoutRoot"))); this.CancelButton = ((System.Windows.Controls.Button)(this.FindName("CancelButton"))); this.OKButton = ((System.Windows.Controls.Button)(this.FindName("OKButton"))); this.groupBox1 = ((SilverlightContrib.Controls.GroupBox)(this.FindName("groupBox1"))); this.groupBox2 = ((SilverlightContrib.Controls.GroupBox)(this.FindName("groupBox2"))); this.label1 = ((System.Windows.Controls.Label)(this.FindName("label1"))); this.Txt_NumeroDevis = ((System.Windows.Controls.TextBox)(this.FindName("Txt_NumeroDevis"))); this.label2 = ((System.Windows.Controls.Label)(this.FindName("label2"))); this.label3 = ((System.Windows.Controls.Label)(this.FindName("label3"))); this.label16 = ((System.Windows.Controls.Label)(this.FindName("label16"))); this.TxtMethodeDeControle = ((System.Windows.Controls.TextBox)(this.FindName("TxtMethodeDeControle"))); this.ChkMaterielConsomme = ((System.Windows.Controls.CheckBox)(this.FindName("ChkMaterielConsomme"))); this.TxtDatePrevisionnelleTravaux = ((System.Windows.Controls.TextBox)(this.FindName("TxtDatePrevisionnelleTravaux"))); this.TxtDateDebutTravaux = ((System.Windows.Controls.TextBox)(this.FindName("TxtDateDebutTravaux"))); this.label4 = ((System.Windows.Controls.Label)(this.FindName("label4"))); this.TxtOrdre = ((System.Windows.Controls.TextBox)(this.FindName("TxtOrdre"))); this.label5 = ((System.Windows.Controls.Label)(this.FindName("label5"))); this.TxtDateFinTravaux = ((System.Windows.Controls.TextBox)(this.FindName("TxtDateFinTravaux"))); this.label6 = ((System.Windows.Controls.Label)(this.FindName("label6"))); this.TxtVolumeTravauxTerassement = ((System.Windows.Controls.TextBox)(this.FindName("TxtVolumeTravauxTerassement"))); this.label7 = ((System.Windows.Controls.Label)(this.FindName("label7"))); this.TxtDegradationVoiePublic = ((System.Windows.Controls.TextBox)(this.FindName("TxtDegradationVoiePublic"))); this.NumUpDownNoteEvaluation = ((System.Windows.Controls.NumericUpDown)(this.FindName("NumUpDownNoteEvaluation"))); this.label8 = ((System.Windows.Controls.Label)(this.FindName("label8"))); this.DtpDateControle = ((System.Windows.Controls.DatePicker)(this.FindName("DtpDateControle"))); this.label9 = ((System.Windows.Controls.Label)(this.FindName("label9"))); this.btn_transmetre = ((System.Windows.Controls.Button)(this.FindName("btn_transmetre"))); this.RejeterButton = ((System.Windows.Controls.Button)(this.FindName("RejeterButton"))); }
private void ShowPopUpLittle(object sender) { if (!popUp.IsOpen) { numUpDown1 = sender as NumericUpDown; if (numUpDown1 != null) { int row = (int)numUpDown1.GetValue(Grid.RowProperty); int col = (int)numUpDown1.GetValue(Grid.ColumnProperty); popUpLittle.SetValue(Grid.RowProperty, row); popUpLittle.SetValue(Grid.ColumnProperty, col + 1); popUpLittle.IsOpen = true; } } }
public virtual void NumericUpDownPeerSupportsRangeValueAndValue() { NumericUpDown item = new NumericUpDown(); NumericUpDownAutomationPeer peer = null; TestAsync( item, () => peer = FrameworkElementAutomationPeer.CreatePeerForElement(item) as NumericUpDownAutomationPeer, () => Assert.IsNull(peer.GetPattern(PatternInterface.Dock), "NumericUpDownAutomationPeer should not support the Dock pattern!"), () => Assert.IsNull(peer.GetPattern(PatternInterface.ExpandCollapse), "NumericUpDownAutomationPeer should not support the ExpandCollapse pattern!"), () => Assert.IsNull(peer.GetPattern(PatternInterface.Grid), "NumericUpDownAutomationPeer should not support the Grid pattern!"), () => Assert.IsNull(peer.GetPattern(PatternInterface.GridItem), "NumericUpDownAutomationPeer should not support the GridItem pattern!"), () => Assert.IsNull(peer.GetPattern(PatternInterface.Invoke), "NumericUpDownAutomationPeer should not support the Dock pattern!"), () => Assert.IsNull(peer.GetPattern(PatternInterface.MultipleView), "NumericUpDownAutomationPeer should not support the MultipleView pattern!"), () => Assert.IsNotNull(peer.GetPattern(PatternInterface.RangeValue), "NumericUpDownAutomationPeer should support the RangeValue pattern!"), () => Assert.IsNull(peer.GetPattern(PatternInterface.Scroll), "NumericUpDownAutomationPeer should not support the Scroll pattern!"), () => Assert.IsNull(peer.GetPattern(PatternInterface.ScrollItem), "NumericUpDownAutomationPeer should not support the ScrollItem pattern!"), () => Assert.IsNull(peer.GetPattern(PatternInterface.Selection), "NumericUpDownAutomationPeer should not support the Selection pattern!"), () => Assert.IsNull(peer.GetPattern(PatternInterface.Table), "NumericUpDownAutomationPeer should not support the Table pattern!"), () => Assert.IsNull(peer.GetPattern(PatternInterface.TableItem), "NumericUpDownAutomationPeer should not support the TableItem pattern!"), () => Assert.IsNull(peer.GetPattern(PatternInterface.Toggle), "NumericUpDownAutomationPeer should not support the Toggle pattern!"), () => Assert.IsNull(peer.GetPattern(PatternInterface.Transform), "NumericUpDownAutomationPeer should not support the Transform pattern!"), () => Assert.IsNotNull(peer.GetPattern(PatternInterface.Value), "NumericUpDownAutomationPeer should support the Value pattern!"), () => Assert.IsNull(peer.GetPattern(PatternInterface.Window), "NumericUpDownAutomationPeer should not support the Window pattern!")); }
public TopFilterControl() { Grid LayoutRoot = new Grid(); LayoutRoot.ColumnDefinitions.Add(new ColumnDefinition()); LayoutRoot.ColumnDefinitions.Add(new ColumnDefinition()); LayoutRoot.ColumnDefinitions.Add(new ColumnDefinition()); LayoutRoot.ColumnDefinitions.Add(new ColumnDefinition() { Width = GridLength.Auto }); LayoutRoot.ColumnDefinitions.Add(new ColumnDefinition() { Width = new GridLength(2, GridUnitType.Star) }); LayoutRoot.RowDefinitions.Add(new RowDefinition()); LayoutRoot.RowDefinitions.Add(new RowDefinition() { Height = new GridLength(24) }); LayoutRoot.RowDefinitions.Add(new RowDefinition()); // Тип фильтра comboFilterType = new TopFilterTypeCombo(); LayoutRoot.Children.Add(comboFilterType); Grid.SetRow(comboFilterType, 1); // Количество записей numCount = new NumericUpDown() { Margin = new Thickness(5,0,0,0) }; numCount.Minimum = 0; numCount.Increment = 1; numCount.Value = 10; LayoutRoot.Children.Add(numCount); Grid.SetRow(numCount, 1); // Расставляем контролы в зависимости от культуры String culture = Thread.CurrentThread.CurrentUICulture.Name.ToLower(); if (culture == "ru" || culture == "ru-ru") { // Количество numCount.Margin = new Thickness(0); Grid.SetColumn(numCount, 0); // Тип фильтра LayoutRoot.ColumnDefinitions[1].Width = new GridLength(2, GridUnitType.Star); comboFilterType.Margin = new Thickness(5, 0, 0, 0); Grid.SetColumn(comboFilterType, 1); // Что отбираем LayoutRoot.ColumnDefinitions[2].Width = new GridLength(3, GridUnitType.Star); } else { // Тип фильтра LayoutRoot.ColumnDefinitions[0].Width = new GridLength(2, GridUnitType.Star); comboFilterType.Margin = new Thickness(0); Grid.SetColumn(comboFilterType, 0); // Количество numCount.Margin = new Thickness(5, 0, 0, 0); Grid.SetColumn(numCount, 1); // Что отбираем LayoutRoot.ColumnDefinitions[2].Width = new GridLength(2, GridUnitType.Star); } // Что отбираем comboFilterTarget = new TopFilterTargetCombo() { Margin = new Thickness(5, 0, 0, 0) }; LayoutRoot.Children.Add(comboFilterTarget); Grid.SetColumn(comboFilterTarget, 2); Grid.SetRow(comboFilterTarget, 1); // Текст "по" TextBlock lblBy = new TextBlock() { Text = Localization.Filter_Label_By, TextAlignment = TextAlignment.Center, VerticalAlignment = VerticalAlignment.Bottom, Margin = new Thickness(5, 0, 0, 0) }; LayoutRoot.Children.Add(lblBy); Grid.SetColumn(lblBy, 3); Grid.SetRow(lblBy, 1); // Мера куба comboMeasure = new MeasuresCombo() { Margin = new Thickness(5, 0, 0, 0) }; LayoutRoot.Children.Add(comboMeasure); Grid.SetColumn(comboMeasure, 4); Grid.SetRow(comboMeasure, 1); //Width = 500; this.Content = LayoutRoot; }
public void InitializeComponent() { if (_contentLoaded) { return; } _contentLoaded = true; System.Windows.Application.LoadComponent(this, new System.Uri("/Galatee.Silverlight;component/Fraude/UcSaisiePvAuditions.xaml", System.UriKind.Relative)); this.LayoutRoot = ((System.Windows.Controls.Grid)(this.FindName("LayoutRoot"))); this.CancelButton = ((System.Windows.Controls.Button)(this.FindName("CancelButton"))); this.OKButton = ((System.Windows.Controls.Button)(this.FindName("OKButton"))); this.btn_Transfert = ((System.Windows.Controls.Button)(this.FindName("btn_Transfert"))); this.Gbo_Traitement = ((SilverlightContrib.Controls.GroupBox)(this.FindName("Gbo_Traitement"))); this.txt_Numerotraitement = ((System.Windows.Controls.TextBox)(this.FindName("txt_Numerotraitement"))); this.ckbConvocationRespectee = ((System.Windows.Controls.CheckBox)(this.FindName("ckbConvocationRespectee"))); this.Gbo_InformationAbonne = ((SilverlightContrib.Controls.GroupBox)(this.FindName("Gbo_InformationAbonne"))); this.txt_Nom = ((System.Windows.Controls.TextBox)(this.FindName("txt_Nom"))); this.txt_refclient = ((System.Windows.Controls.TextBox)(this.FindName("txt_refclient"))); this.txt_IdentUnique = ((System.Windows.Controls.TextBox)(this.FindName("txt_IdentUnique"))); this.txt_ContactAbonne = ((System.Windows.Controls.TextBox)(this.FindName("txt_ContactAbonne"))); this.txt_contarBrachement = ((System.Windows.Controls.TextBox)(this.FindName("txt_contarBrachement"))); this.txt_porte = ((System.Windows.Controls.TextBox)(this.FindName("txt_porte"))); this.txt_telephone = ((System.Windows.Controls.TextBox)(this.FindName("txt_telephone"))); this.txt_email = ((System.Windows.Controls.TextBox)(this.FindName("txt_email"))); this.DateBranchemnt = ((System.Windows.Controls.DatePicker)(this.FindName("DateBranchemnt"))); this.DateAbonnemnt = ((System.Windows.Controls.DatePicker)(this.FindName("DateAbonnemnt"))); this.Gbo_controle = ((SilverlightContrib.Controls.GroupBox)(this.FindName("Gbo_controle"))); this.Check_Abnpropriete = ((System.Windows.Controls.CheckBox)(this.FindName("Check_Abnpropriete"))); this.check_Abnpenalite = ((System.Windows.Controls.CheckBox)(this.FindName("check_Abnpenalite"))); this.check_DemandeVerifie = ((System.Windows.Controls.CheckBox)(this.FindName("check_DemandeVerifie"))); this.check_Reception = ((System.Windows.Controls.CheckBox)(this.FindName("check_Reception"))); this.check_maisonhabite = ((System.Windows.Controls.CheckBox)(this.FindName("check_maisonhabite"))); this.check_abnmotif = ((System.Windows.Controls.CheckBox)(this.FindName("check_abnmotif"))); this.check_Autrefacture = ((System.Windows.Controls.CheckBox)(this.FindName("check_Autrefacture"))); this.check_certifie = ((System.Windows.Controls.CheckBox)(this.FindName("check_certifie"))); this.check_Nouvelle_Acqui = ((System.Windows.Controls.CheckBox)(this.FindName("check_Nouvelle_Acqui"))); this.daterdv = ((System.Windows.Controls.DatePicker)(this.FindName("daterdv"))); this.dateAudition = ((System.Windows.Controls.DatePicker)(this.FindName("dateAudition"))); this.txt_nomrepond = ((System.Windows.Controls.TextBox)(this.FindName("txt_nomrepond"))); this.txt_abnmotif = ((System.Windows.Controls.TextBox)(this.FindName("txt_abnmotif"))); this.label3 = ((System.Windows.Controls.Label)(this.FindName("label3"))); this.txtCentre = ((System.Windows.Controls.TextBox)(this.FindName("txtCentre"))); this.Cbo_Centre = ((System.Windows.Controls.ComboBox)(this.FindName("Cbo_Centre"))); this.nudNombreHabitant = ((System.Windows.Controls.NumericUpDown)(this.FindName("nudNombreHabitant"))); this.label13 = ((System.Windows.Controls.Label)(this.FindName("label13"))); this.txt_Commune = ((System.Windows.Controls.TextBox)(this.FindName("txt_Commune"))); this.Cbo_Commune = ((System.Windows.Controls.ComboBox)(this.FindName("Cbo_Commune"))); this.label14 = ((System.Windows.Controls.Label)(this.FindName("label14"))); this.txt_Quartier = ((System.Windows.Controls.TextBox)(this.FindName("txt_Quartier"))); this.Cbo_Quartier = ((System.Windows.Controls.ComboBox)(this.FindName("Cbo_Quartier"))); this.label15 = ((System.Windows.Controls.Label)(this.FindName("label15"))); this.txt_NumRue = ((System.Windows.Controls.TextBox)(this.FindName("txt_NumRue"))); this.Cbo_Rue = ((System.Windows.Controls.ComboBox)(this.FindName("Cbo_Rue"))); this.label15_Copy = ((System.Windows.Controls.Label)(this.FindName("label15_Copy"))); this.txt_NumSecteur = ((System.Windows.Controls.TextBox)(this.FindName("txt_NumSecteur"))); this.Cbo_Secteur = ((System.Windows.Controls.ComboBox)(this.FindName("Cbo_Secteur"))); this.txt_qualirepond = ((System.Windows.Controls.TextBox)(this.FindName("txt_qualirepond"))); this.Gbo_Produit = ((SilverlightContrib.Controls.GroupBox)(this.FindName("Gbo_Produit"))); this.Cbo_Produit = ((System.Windows.Controls.ComboBox)(this.FindName("Cbo_Produit"))); this.Cbo_usage = ((System.Windows.Controls.ComboBox)(this.FindName("Cbo_usage"))); this.Gbo_branchement = ((SilverlightContrib.Controls.GroupBox)(this.FindName("Gbo_branchement"))); this.txt_numero = ((System.Windows.Controls.TextBox)(this.FindName("txt_numero"))); this.Cbo_AnormlieCompteur = ((System.Windows.Controls.ComboBox)(this.FindName("Cbo_AnormlieCompteur"))); this.Cbo_typeCompteur = ((System.Windows.Controls.ComboBox)(this.FindName("Cbo_typeCompteur"))); this.txt_reference_plombs = ((System.Windows.Controls.TextBox)(this.FindName("txt_reference_plombs"))); this.txt_certifiplombage = ((System.Windows.Controls.TextBox)(this.FindName("txt_certifiplombage"))); this.Cbo_ActionEntreprise = ((System.Windows.Controls.ComboBox)(this.FindName("Cbo_ActionEntreprise"))); this.Cbo_MarqueCmpt = ((System.Windows.Controls.ComboBox)(this.FindName("Cbo_MarqueCmpt"))); this.txt_Index = ((System.Windows.Controls.TextBox)(this.FindName("txt_Index"))); this.txt_Numbrepince = ((System.Windows.Controls.TextBox)(this.FindName("txt_Numbrepince"))); this.Cbo_Fils = ((System.Windows.Controls.ComboBox)(this.FindName("Cbo_Fils"))); this.Cbo_CalibreCompteur = ((System.Windows.Controls.ComboBox)(this.FindName("Cbo_CalibreCompteur"))); this.Gbo_Djistonct = ((SilverlightContrib.Controls.GroupBox)(this.FindName("Gbo_Djistonct"))); this.txt_refeplombs = ((System.Windows.Controls.TextBox)(this.FindName("txt_refeplombs"))); this.Cbo_AnormalieCacheb = ((System.Windows.Controls.ComboBox)(this.FindName("Cbo_AnormalieCacheb"))); this.Cbo_AnorBranchmnt = ((System.Windows.Controls.ComboBox)(this.FindName("Cbo_AnorBranchmnt"))); this.Gbo_Cache = ((SilverlightContrib.Controls.GroupBox)(this.FindName("Gbo_Cache"))); this.Cbo_MArqueDijoncteur = ((System.Windows.Controls.ComboBox)(this.FindName("Cbo_MArqueDijoncteur"))); this.Cbo_CalibreDijoncteur = ((System.Windows.Controls.ComboBox)(this.FindName("Cbo_CalibreDijoncteur"))); this.Cbo_ReglageCmpt = ((System.Windows.Controls.ComboBox)(this.FindName("Cbo_ReglageCmpt"))); this.Cbo_NbresfilsDijoncteur = ((System.Windows.Controls.ComboBox)(this.FindName("Cbo_NbresfilsDijoncteur"))); this.Gbo_reference = ((SilverlightContrib.Controls.GroupBox)(this.FindName("Gbo_reference"))); this.txt_CoffreFusile = ((System.Windows.Controls.TextBox)(this.FindName("txt_CoffreFusile"))); this.txtCoffreSeruite = ((System.Windows.Controls.TextBox)(this.FindName("txtCoffreSeruite"))); this.Gbo_ListeAppareils = ((SilverlightContrib.Controls.GroupBox)(this.FindName("Gbo_ListeAppareils"))); this.lab_ListeAppareils = ((System.Windows.Controls.Label)(this.FindName("lab_ListeAppareils"))); this.Cbo_ListeAppareils = ((System.Windows.Controls.ComboBox)(this.FindName("Cbo_ListeAppareils"))); this.Btn_ListeAppareils = ((System.Windows.Controls.Button)(this.FindName("Btn_ListeAppareils"))); }
public void InitializeComponent() { if (_contentLoaded) { return; } _contentLoaded = true; System.Windows.Application.LoadComponent(this, new System.Uri("/Galatee.Silverlight;component/Fraude/UcConsultation.xaml", System.UriKind.Relative)); this.LayoutRoot = ((System.Windows.Controls.Grid)(this.FindName("LayoutRoot"))); this.CancelButton = ((System.Windows.Controls.Button)(this.FindName("CancelButton"))); this.OKButton = ((System.Windows.Controls.Button)(this.FindName("OKButton"))); this.Gbo_AbonneDeno = ((SilverlightContrib.Controls.GroupBox)(this.FindName("Gbo_AbonneDeno"))); this.Cbo_SourceControle = ((System.Windows.Controls.ComboBox)(this.FindName("Cbo_SourceControle"))); this.txt_Abonne = ((System.Windows.Controls.TextBox)(this.FindName("txt_Abonne"))); this.txt_Contact = ((System.Windows.Controls.TextBox)(this.FindName("txt_Contact"))); this.txt_LienAbonne = ((System.Windows.Controls.TextBox)(this.FindName("txt_LienAbonne"))); this.txt_Identite = ((System.Windows.Controls.TextBox)(this.FindName("txt_Identite"))); this.dateDeniation = ((System.Windows.Controls.DatePicker)(this.FindName("dateDeniation"))); this.Cbo_MoyenDenociation = ((System.Windows.Controls.ComboBox)(this.FindName("Cbo_MoyenDenociation"))); this.Gbo_InformationDevis = ((SilverlightContrib.Controls.GroupBox)(this.FindName("Gbo_InformationDevis"))); this.txt_Nom = ((System.Windows.Controls.TextBox)(this.FindName("txt_Nom"))); this.txt_refclient = ((System.Windows.Controls.TextBox)(this.FindName("txt_refclient"))); this.txt_IdentUnique = ((System.Windows.Controls.TextBox)(this.FindName("txt_IdentUnique"))); this.txt_ContactAbonne = ((System.Windows.Controls.TextBox)(this.FindName("txt_ContactAbonne"))); this.txt_contarBrachement = ((System.Windows.Controls.TextBox)(this.FindName("txt_contarBrachement"))); this.txt_porteIn = ((System.Windows.Controls.TextBox)(this.FindName("txt_porteIn"))); this.txt_telephone = ((System.Windows.Controls.TextBox)(this.FindName("txt_telephone"))); this.txt_emailIn = ((System.Windows.Controls.TextBox)(this.FindName("txt_emailIn"))); this.DateAbonnemnt = ((System.Windows.Controls.DatePicker)(this.FindName("DateAbonnemnt"))); this.DateBranchemnt = ((System.Windows.Controls.DatePicker)(this.FindName("DateBranchemnt"))); this.label3 = ((System.Windows.Controls.Label)(this.FindName("label3"))); this.txtCentre = ((System.Windows.Controls.TextBox)(this.FindName("txtCentre"))); this.Cbo_Centre = ((System.Windows.Controls.ComboBox)(this.FindName("Cbo_Centre"))); this.label13 = ((System.Windows.Controls.Label)(this.FindName("label13"))); this.txt_Commune = ((System.Windows.Controls.TextBox)(this.FindName("txt_Commune"))); this.Cbo_Commune = ((System.Windows.Controls.ComboBox)(this.FindName("Cbo_Commune"))); this.label14 = ((System.Windows.Controls.Label)(this.FindName("label14"))); this.txt_Quartier = ((System.Windows.Controls.TextBox)(this.FindName("txt_Quartier"))); this.Cbo_Quartier = ((System.Windows.Controls.ComboBox)(this.FindName("Cbo_Quartier"))); this.label15 = ((System.Windows.Controls.Label)(this.FindName("label15"))); this.txt_NumRue = ((System.Windows.Controls.TextBox)(this.FindName("txt_NumRue"))); this.Cbo_Rue = ((System.Windows.Controls.ComboBox)(this.FindName("Cbo_Rue"))); this.label15_Copy = ((System.Windows.Controls.Label)(this.FindName("label15_Copy"))); this.txt_NumSecteur = ((System.Windows.Controls.TextBox)(this.FindName("txt_NumSecteur"))); this.Cbo_Secteur = ((System.Windows.Controls.ComboBox)(this.FindName("Cbo_Secteur"))); this.Gbo_Traitement = ((SilverlightContrib.Controls.GroupBox)(this.FindName("Gbo_Traitement"))); this.txt_Numerotraitement = ((System.Windows.Controls.TextBox)(this.FindName("txt_Numerotraitement"))); this.chck_fraudAve = ((System.Windows.Controls.CheckBox)(this.FindName("chck_fraudAve"))); this.Gbo_Controle = ((SilverlightContrib.Controls.GroupBox)(this.FindName("Gbo_Controle"))); this.txt_Nomexpert = ((System.Windows.Controls.TextBox)(this.FindName("txt_Nomexpert"))); this.txt_courantAdmn = ((System.Windows.Controls.TextBox)(this.FindName("txt_courantAdmn"))); this.txt_ordinateur = ((System.Windows.Controls.TextBox)(this.FindName("txt_ordinateur"))); this.txt_FichControle = ((System.Windows.Controls.TextBox)(this.FindName("txt_FichControle"))); this.DateControle = ((System.Windows.Controls.DatePicker)(this.FindName("DateControle"))); this.Cbo_QualiteExpert = ((System.Windows.Controls.ComboBox)(this.FindName("Cbo_QualiteExpert"))); this.txt_Commissarial = ((System.Windows.Controls.TextBox)(this.FindName("txt_Commissarial"))); this.chck_abonne = ((System.Windows.Controls.CheckBox)(this.FindName("chck_abonne"))); this.chck_convocation = ((System.Windows.Controls.CheckBox)(this.FindName("chck_convocation"))); this.chck_anomalie = ((System.Windows.Controls.CheckBox)(this.FindName("chck_anomalie"))); this.Gbo_Produit = ((SilverlightContrib.Controls.GroupBox)(this.FindName("Gbo_Produit"))); this.Cbo_Produit = ((System.Windows.Controls.ComboBox)(this.FindName("Cbo_Produit"))); this.Cbo_usage = ((System.Windows.Controls.ComboBox)(this.FindName("Cbo_usage"))); this.Gbo_branchement = ((SilverlightContrib.Controls.GroupBox)(this.FindName("Gbo_branchement"))); this.txt_numero = ((System.Windows.Controls.TextBox)(this.FindName("txt_numero"))); this.Cbo_AnormlieCompteur = ((System.Windows.Controls.ComboBox)(this.FindName("Cbo_AnormlieCompteur"))); this.Cbo_typeCompteur = ((System.Windows.Controls.ComboBox)(this.FindName("Cbo_typeCompteur"))); this.txt_reference_plombs = ((System.Windows.Controls.TextBox)(this.FindName("txt_reference_plombs"))); this.txt_certifiplombage = ((System.Windows.Controls.TextBox)(this.FindName("txt_certifiplombage"))); this.Cbo_ActionEntreprise = ((System.Windows.Controls.ComboBox)(this.FindName("Cbo_ActionEntreprise"))); this.Cbo_MarqueCmpt = ((System.Windows.Controls.ComboBox)(this.FindName("Cbo_MarqueCmpt"))); this.txt_Index = ((System.Windows.Controls.TextBox)(this.FindName("txt_Index"))); this.txt_Numbrepince = ((System.Windows.Controls.TextBox)(this.FindName("txt_Numbrepince"))); this.Cbo_Fils = ((System.Windows.Controls.ComboBox)(this.FindName("Cbo_Fils"))); this.Cbo_CalibreCompteur = ((System.Windows.Controls.ComboBox)(this.FindName("Cbo_CalibreCompteur"))); this.Gbo_Djistonct = ((SilverlightContrib.Controls.GroupBox)(this.FindName("Gbo_Djistonct"))); this.txt_refeplombs = ((System.Windows.Controls.TextBox)(this.FindName("txt_refeplombs"))); this.Cbo_AnormalieCacheb = ((System.Windows.Controls.ComboBox)(this.FindName("Cbo_AnormalieCacheb"))); this.Cbo_AnorBranchmnt = ((System.Windows.Controls.ComboBox)(this.FindName("Cbo_AnorBranchmnt"))); this.Gbo_Cache = ((SilverlightContrib.Controls.GroupBox)(this.FindName("Gbo_Cache"))); this.Cbo_MArqueDijoncteur = ((System.Windows.Controls.ComboBox)(this.FindName("Cbo_MArqueDijoncteur"))); this.Cbo_CalibreDijoncteur = ((System.Windows.Controls.ComboBox)(this.FindName("Cbo_CalibreDijoncteur"))); this.Cbo_ReglageCmpt = ((System.Windows.Controls.ComboBox)(this.FindName("Cbo_ReglageCmpt"))); this.Cbo_NbresfilsDijoncteur = ((System.Windows.Controls.ComboBox)(this.FindName("Cbo_NbresfilsDijoncteur"))); this.Gbo_reference = ((SilverlightContrib.Controls.GroupBox)(this.FindName("Gbo_reference"))); this.txt_CoffreFusile = ((System.Windows.Controls.TextBox)(this.FindName("txt_CoffreFusile"))); this.txtCoffreSeruite = ((System.Windows.Controls.TextBox)(this.FindName("txtCoffreSeruite"))); this.Gbo_ListeAppareils = ((SilverlightContrib.Controls.GroupBox)(this.FindName("Gbo_ListeAppareils"))); this.lab_ListeAppareils = ((System.Windows.Controls.Label)(this.FindName("lab_ListeAppareils"))); this.Cbo_ListeAppareils = ((System.Windows.Controls.ComboBox)(this.FindName("Cbo_ListeAppareils"))); this.Btn_ListeAppareils = ((System.Windows.Controls.Button)(this.FindName("Btn_ListeAppareils"))); this.Gbo_TraitementAd = ((SilverlightContrib.Controls.GroupBox)(this.FindName("Gbo_TraitementAd"))); this.txt_NumerotraitementAd = ((System.Windows.Controls.TextBox)(this.FindName("txt_NumerotraitementAd"))); this.ckbConvocationRespectee = ((System.Windows.Controls.CheckBox)(this.FindName("ckbConvocationRespectee"))); this.Gbo_controle = ((SilverlightContrib.Controls.GroupBox)(this.FindName("Gbo_controle"))); this.Check_Abnpropriete = ((System.Windows.Controls.CheckBox)(this.FindName("Check_Abnpropriete"))); this.check_Abnpenalite = ((System.Windows.Controls.CheckBox)(this.FindName("check_Abnpenalite"))); this.check_DemandeVerifie = ((System.Windows.Controls.CheckBox)(this.FindName("check_DemandeVerifie"))); this.check_Reception = ((System.Windows.Controls.CheckBox)(this.FindName("check_Reception"))); this.check_maisonhabite = ((System.Windows.Controls.CheckBox)(this.FindName("check_maisonhabite"))); this.check_abnmotif = ((System.Windows.Controls.CheckBox)(this.FindName("check_abnmotif"))); this.check_Autrefacture = ((System.Windows.Controls.CheckBox)(this.FindName("check_Autrefacture"))); this.check_certifie = ((System.Windows.Controls.CheckBox)(this.FindName("check_certifie"))); this.check_Nouvelle_Acqui = ((System.Windows.Controls.CheckBox)(this.FindName("check_Nouvelle_Acqui"))); this.daterdv = ((System.Windows.Controls.DatePicker)(this.FindName("daterdv"))); this.dateAudition = ((System.Windows.Controls.DatePicker)(this.FindName("dateAudition"))); this.txt_nomrepond = ((System.Windows.Controls.TextBox)(this.FindName("txt_nomrepond"))); this.txt_NombreHabitant = ((System.Windows.Controls.TextBox)(this.FindName("txt_NombreHabitant"))); this.txt_abnmotif = ((System.Windows.Controls.TextBox)(this.FindName("txt_abnmotif"))); this.txt_qualirepond = ((System.Windows.Controls.TextBox)(this.FindName("txt_qualirepond"))); this.Gbo_ConsommationFacturee = ((SilverlightContrib.Controls.GroupBox)(this.FindName("Gbo_ConsommationFacturee"))); this.nudNombreMois = ((System.Windows.Controls.NumericUpDown)(this.FindName("nudNombreMois"))); this.txtConsommationDejaFacture = ((System.Windows.Controls.TextBox)(this.FindName("txtConsommationDejaFacture"))); this.dgvDerniereConsoPart1 = ((System.Windows.Controls.DataGrid)(this.FindName("dgvDerniereConsoPart1"))); this.dgvDerniereConsoPart2 = ((System.Windows.Controls.DataGrid)(this.FindName("dgvDerniereConsoPart2"))); this.dgvDerniereConsoPart3 = ((System.Windows.Controls.DataGrid)(this.FindName("dgvDerniereConsoPart3"))); this.dgvDerniereConsoPart4 = ((System.Windows.Controls.DataGrid)(this.FindName("dgvDerniereConsoPart4"))); this.dgvDerniereConsoPart5 = ((System.Windows.Controls.DataGrid)(this.FindName("dgvDerniereConsoPart5"))); this.Gbo_TraitementCt = ((SilverlightContrib.Controls.GroupBox)(this.FindName("Gbo_TraitementCt"))); this.dtgrdAnnalyse = ((System.Windows.Controls.DataGrid)(this.FindName("dtgrdAnnalyse"))); this.txtConsommationEstimeeEquipement = ((System.Windows.Controls.TextBox)(this.FindName("txtConsommationEstimeeEquipement"))); this.txtRetrogradation = ((System.Windows.Controls.TextBox)(this.FindName("txtRetrogradation"))); this.txtTotalEstime = ((System.Windows.Controls.TextBox)(this.FindName("txtTotalEstime"))); this.txtConsommationDejaFacturee = ((System.Windows.Controls.TextBox)(this.FindName("txtConsommationDejaFacturee"))); this.Gbo_Cosoestime = ((SilverlightContrib.Controls.GroupBox)(this.FindName("Gbo_Cosoestime"))); this.txtConsommationAFacturer = ((System.Windows.Controls.TextBox)(this.FindName("txtConsommationAFacturer"))); this.ckbFraudeConfirmée = ((System.Windows.Controls.CheckBox)(this.FindName("ckbFraudeConfirmée"))); this.Cbo_Decision = ((System.Windows.Controls.ComboBox)(this.FindName("Cbo_Decision"))); }
public void InitializeComponent() { if (_contentLoaded) { return; } _contentLoaded = true; System.Windows.Application.LoadComponent(this, new System.Uri("/ColorIllusions2;component/MainPage.xaml", System.UriKind.Relative)); this.LayoutRoot = ((System.Windows.Controls.Grid)(this.FindName("LayoutRoot"))); this.lbMainTitle = ((System.Windows.Controls.TextBlock)(this.FindName("lbMainTitle"))); this.Stimulus = ((System.Windows.Controls.ListBox)(this.FindName("Stimulus"))); this.spCenterSpeed = ((System.Windows.Controls.StackPanel)(this.FindName("spCenterSpeed"))); this.nudCenterSpeed = ((System.Windows.Controls.NumericUpDown)(this.FindName("nudCenterSpeed"))); this.spFrequency = ((System.Windows.Controls.StackPanel)(this.FindName("spFrequency"))); this.nudCenterScalingFrequency = ((System.Windows.Controls.NumericUpDown)(this.FindName("nudCenterScalingFrequency"))); this.spShearing = ((System.Windows.Controls.StackPanel)(this.FindName("spShearing"))); this.nudShearingFactor = ((System.Windows.Controls.NumericUpDown)(this.FindName("nudShearingFactor"))); this.nudShearingAngle = ((System.Windows.Controls.NumericUpDown)(this.FindName("nudShearingAngle"))); this.nudShearingFreq = ((System.Windows.Controls.NumericUpDown)(this.FindName("nudShearingFreq"))); this.spStatShearDot = ((System.Windows.Controls.StackPanel)(this.FindName("spStatShearDot"))); this.cbStatWheel = ((System.Windows.Controls.CheckBox)(this.FindName("cbStatWheel"))); this.cbStatDot = ((System.Windows.Controls.CheckBox)(this.FindName("cbStatDot"))); this.nudZoom = ((System.Windows.Controls.NumericUpDown)(this.FindName("nudZoom"))); this.nudWheelFromRed = ((System.Windows.Controls.NumericUpDown)(this.FindName("nudWheelFromRed"))); this.nudWheelFromGreen = ((System.Windows.Controls.NumericUpDown)(this.FindName("nudWheelFromGreen"))); this.nudWheelFromBlue = ((System.Windows.Controls.NumericUpDown)(this.FindName("nudWheelFromBlue"))); this.nudWheelToRed = ((System.Windows.Controls.NumericUpDown)(this.FindName("nudWheelToRed"))); this.nudWheelToGreen = ((System.Windows.Controls.NumericUpDown)(this.FindName("nudWheelToGreen"))); this.nudWheelToBlue = ((System.Windows.Controls.NumericUpDown)(this.FindName("nudWheelToBlue"))); this.nudMaskRed = ((System.Windows.Controls.NumericUpDown)(this.FindName("nudMaskRed"))); this.nudMaskGreen = ((System.Windows.Controls.NumericUpDown)(this.FindName("nudMaskGreen"))); this.nudMaskBlue = ((System.Windows.Controls.NumericUpDown)(this.FindName("nudMaskBlue"))); this.cbMarker = ((System.Windows.Controls.CheckBox)(this.FindName("cbMarker"))); this.spRingCB = ((System.Windows.Controls.StackPanel)(this.FindName("spRingCB"))); this.cbRings = ((System.Windows.Controls.CheckBox)(this.FindName("cbRings"))); this.spMarkerSpeed = ((System.Windows.Controls.StackPanel)(this.FindName("spMarkerSpeed"))); this.nudMarkerSpeed = ((System.Windows.Controls.NumericUpDown)(this.FindName("nudMarkerSpeed"))); this.TextureMap = ((System.Windows.Controls.ListBox)(this.FindName("TextureMap"))); this.spMaskRotation = ((System.Windows.Controls.StackPanel)(this.FindName("spMaskRotation"))); this.nudMaskRotationSpeed = ((System.Windows.Controls.NumericUpDown)(this.FindName("nudMaskRotationSpeed"))); this.spMaskSize = ((System.Windows.Controls.StackPanel)(this.FindName("spMaskSize"))); this.nudMaskSize = ((System.Windows.Controls.NumericUpDown)(this.FindName("nudMaskSize"))); this.spTextureScale = ((System.Windows.Controls.StackPanel)(this.FindName("spTextureScale"))); this.nudMaskScale = ((System.Windows.Controls.NumericUpDown)(this.FindName("nudMaskScale"))); this.spMaskScaling = ((System.Windows.Controls.StackPanel)(this.FindName("spMaskScaling"))); this.nudMaskScalingFrequency = ((System.Windows.Controls.NumericUpDown)(this.FindName("nudMaskScalingFrequency"))); this.spMaskOffset = ((System.Windows.Controls.StackPanel)(this.FindName("spMaskOffset"))); this.nudMaskXOffset = ((System.Windows.Controls.NumericUpDown)(this.FindName("nudMaskXOffset"))); this.nudMaskYOffset = ((System.Windows.Controls.NumericUpDown)(this.FindName("nudMaskYOffset"))); this.spFlicker = ((System.Windows.Controls.StackPanel)(this.FindName("spFlicker"))); this.cbFlicker = ((System.Windows.Controls.CheckBox)(this.FindName("cbFlicker"))); this.IllusionPanel = ((System.Windows.Controls.Canvas)(this.FindName("IllusionPanel"))); this.IllusionClip = ((System.Windows.Media.RectangleGeometry)(this.FindName("IllusionClip"))); this.canvasSpokewheel = ((System.Windows.Controls.Canvas)(this.FindName("canvasSpokewheel"))); this.MotionGenerator = ((System.Windows.Media.Animation.Storyboard)(this.FindName("MotionGenerator"))); this.aniMaskRot = ((System.Windows.Media.Animation.DoubleAnimation)(this.FindName("aniMaskRot"))); this.aniWheelRot = ((System.Windows.Media.Animation.DoubleAnimation)(this.FindName("aniWheelRot"))); this.aniWheelScale = ((System.Windows.Media.Animation.DoubleAnimation)(this.FindName("aniWheelScale"))); this.aniMaskScale = ((System.Windows.Media.Animation.DoubleAnimation)(this.FindName("aniMaskScale"))); this.aniMarkerRot = ((System.Windows.Media.Animation.DoubleAnimation)(this.FindName("aniMarkerRot"))); this.aniMarkerScale = ((System.Windows.Media.Animation.DoubleAnimation)(this.FindName("aniMarkerScale"))); this.aniMarker2Scale = ((System.Windows.Media.Animation.DoubleAnimation)(this.FindName("aniMarker2Scale"))); this.aniFlicker = ((System.Windows.Media.Animation.PointAnimation)(this.FindName("aniFlicker"))); this.imgSectors = ((System.Windows.Controls.Image)(this.FindName("imgSectors"))); this.imgRHSpirals = ((System.Windows.Controls.Image)(this.FindName("imgRHSpirals"))); this.imgLHSpirals = ((System.Windows.Controls.Image)(this.FindName("imgLHSpirals"))); this.imgRings = ((System.Windows.Controls.Image)(this.FindName("imgRings"))); this.imgWheel4 = ((System.Windows.Controls.Image)(this.FindName("imgWheel4"))); this.imgWheel8 = ((System.Windows.Controls.Image)(this.FindName("imgWheel8"))); this.imgWheel16 = ((System.Windows.Controls.Image)(this.FindName("imgWheel16"))); this.imgVSinus128 = ((System.Windows.Controls.Image)(this.FindName("imgVSinus128"))); this.imgVSinus256 = ((System.Windows.Controls.Image)(this.FindName("imgVSinus256"))); this.imgHSinus128 = ((System.Windows.Controls.Image)(this.FindName("imgHSinus128"))); this.imgHSinus256 = ((System.Windows.Controls.Image)(this.FindName("imgHSinus256"))); this.imgSteppedSectors = ((System.Windows.Controls.Image)(this.FindName("imgSteppedSectors"))); this.borderDepthMarker2 = ((System.Windows.Controls.Border)(this.FindName("borderDepthMarker2"))); this.borderDepthMarker = ((System.Windows.Controls.Border)(this.FindName("borderDepthMarker"))); this.borderCnvMask = ((System.Windows.Controls.Border)(this.FindName("borderCnvMask"))); this.cnvMask = ((System.Windows.Controls.Canvas)(this.FindName("cnvMask"))); this.imgRdDots1 = ((System.Windows.Controls.Image)(this.FindName("imgRdDots1"))); this.imgRDRings = ((System.Windows.Controls.Image)(this.FindName("imgRDRings"))); this.imgNoDots = ((System.Windows.Controls.Image)(this.FindName("imgNoDots"))); this.imgHalfRdDots = ((System.Windows.Controls.Image)(this.FindName("imgHalfRdDots"))); this.imgRDSpirals = ((System.Windows.Controls.Image)(this.FindName("imgRDSpirals"))); this.imgTiltedLines90 = ((System.Windows.Controls.Image)(this.FindName("imgTiltedLines90"))); this.imgTiltedLines45 = ((System.Windows.Controls.Image)(this.FindName("imgTiltedLines45"))); this.imgTiltedLines0 = ((System.Windows.Controls.Image)(this.FindName("imgTiltedLines0"))); this.MaskScale = ((System.Windows.Media.ScaleTransform)(this.FindName("MaskScale"))); this.MaskRotPS = ((Shader.Effects.MakeRotationEffect)(this.FindName("MaskRotPS"))); this.CenterPS = ((Shader.Effects.ColorFromMapEffect)(this.FindName("CenterPS"))); this.MarkerPS = ((Shader.Effects.MakeDepthMarkerEffect)(this.FindName("MarkerPS"))); this.Marker2PS = ((Shader.Effects.MakeDepthMarker2Effect)(this.FindName("Marker2PS"))); this.Nabel = ((System.Windows.Shapes.Ellipse)(this.FindName("Nabel"))); this.wNabel = ((System.Windows.Shapes.Ellipse)(this.FindName("wNabel"))); }
private void WorkDayCheckHalfDay(CheckBox ck, DatePicker WorkdayEnddate , ComboBox workComboHatfDay, NumericUpDown nudVacDays , T_HR_OUTPLANDAYS entTemp) { if (workComboHatfDay.SelectedIndex == -1) { workComboHatfDay.SelectedIndex = 0; } if (ck.IsChecked.Value) { if (WorkdayEnddate != null) { WorkdayEnddate.Visibility = Visibility.Collapsed; } if (workComboHatfDay != null) { workComboHatfDay.Visibility = Visibility.Visible; } if (nudVacDays != null) { nudVacDays.Value = 0.5; } } else { if (WorkdayEnddate != null) { WorkdayEnddate.Visibility = Visibility.Visible; } if (workComboHatfDay != null) { workComboHatfDay.Visibility = Visibility.Collapsed; } CalculateDayCount(dgWorkDayList); } SetWorkDayValue(ck, workComboHatfDay, entTemp); }
private void VacDayCheckHalfDay(CheckBox ck, DatePicker WorkdayEnddate , ComboBox ComboBoxHalfDay, NumericUpDown nudVacDays ,T_HR_OUTPLANDAYS obje) { if (ComboBoxHalfDay.SelectedIndex == -1) { ComboBoxHalfDay.SelectedIndex = 0; } if (ck.IsChecked.Value == true) { if (WorkdayEnddate != null) { WorkdayEnddate.Visibility = Visibility.Collapsed; } if (ComboBoxHalfDay != null) { ComboBoxHalfDay.Visibility = Visibility.Visible; } if (nudVacDays != null) { nudVacDays.Value = 0.5; } } else { if (WorkdayEnddate != null) { WorkdayEnddate.Visibility = Visibility.Visible; } if (ComboBoxHalfDay != null) { ComboBoxHalfDay.Visibility = Visibility.Collapsed; } CalculateDayCount(dgVacDayList); } SetVacDayValue(ck, ComboBoxHalfDay,obje); }
private void AddRequirement(OptimizationRequirement requirement) { Grid requirementGrid = new Grid(); requirementGrid.Style = Resources["RequirementGridStyle"] as Style; requirementGrid.ColumnDefinitions.Add(new ColumnDefinition() { Width = GridLength.Auto }); requirementGrid.ColumnDefinitions.Add(new ColumnDefinition() { Width = new GridLength(1, GridUnitType.Star) }); requirementGrid.ColumnDefinitions.Add(new ColumnDefinition() { Width = GridLength.Auto }); requirementGrid.ColumnDefinitions.Add(new ColumnDefinition() { Width = GridLength.Auto }); requirementGrid.ColumnDefinitions.Add(new ColumnDefinition() { Width = GridLength.Auto }); ComboBox requirementCalculationCombo = new ComboBox(); requirementCalculationCombo.Style = Resources["RequirementComboStyle"] as Style; List<string> requirements = new List<string>(); requirements.Add("Overall Rating"); foreach (string subPoint in Calculations.SubPointNameColors.Keys) requirements.Add(subPoint + " Rating"); requirements.AddRange(Calculations.OptimizableCalculationLabels); requirements.Add("Talent"); requirements.Add("Cost"); requirementCalculationCombo.ItemsSource = requirements; requirementCalculationCombo.Tag = Calculations.SubPointNameColors.Count; requirementCalculationCombo.Tag = 0; Grid.SetColumn(requirementCalculationCombo, 0); Grid.SetColumnSpan(requirementCalculationCombo, 2); requirementCalculationCombo.SelectionChanged += requirementCalculationCombo_SelectionChanged; requirementGrid.Children.Add(requirementCalculationCombo); ComboBox requirementTalentsCombo = new ComboBox(); requirementTalentsCombo.Style = Resources["RequirementComboStyle"] as Style; requirementTalentsCombo.ItemsSource = talentList; requirementTalentsCombo.Visibility = Visibility.Collapsed; Grid.SetColumn(requirementTalentsCombo, 1); requirementGrid.Children.Add(requirementTalentsCombo); ComboBox requirementGreaterCombo = new ComboBox(); requirementGreaterCombo.Style = Resources["RequirementGreaterComboStyle"] as Style; requirementGreaterCombo.ItemsSource = new string[] { "≥", "≤" }; requirementGreaterCombo.Tag = 1; Grid.SetColumn(requirementGreaterCombo, 2); requirementGrid.Children.Add(requirementGreaterCombo); NumericUpDown requirementNum = new NumericUpDown(); requirementNum.Style = Resources["RequirementNumStyle"] as Style; requirementNum.Tag = 2; Grid.SetColumn(requirementNum, 3); requirementGrid.Children.Add(requirementNum); Button requirementRemoveButton = new Button(); requirementRemoveButton.Style = Resources["RequirementRemoveStyle"] as Style; requirementRemoveButton.Click += new RoutedEventHandler(RemoveRequirement_Click); Grid.SetColumn(requirementRemoveButton, 4); requirementGrid.Children.Add(requirementRemoveButton); if (requirement == null) { requirementCalculationCombo.SelectedIndex = 0; requirementGreaterCombo.SelectedIndex = 0; requirementNum.Value = 0; } else { string calculationString = requirement.Calculation; if (calculationString.StartsWith("[Overall]", StringComparison.Ordinal)) { requirementCalculationCombo.SelectedIndex = 0; } else if (calculationString.StartsWith("[SubPoint ", StringComparison.Ordinal)) { calculationString = calculationString.Substring(10).TrimEnd(']'); int index = int.Parse(calculationString); if (index < Calculations.SubPointNameColors.Count) { requirementCalculationCombo.SelectedIndex = index + 1; } } else if (calculationString.StartsWith("[Talent ", StringComparison.Ordinal)) { requirementCalculationCombo.SelectedItem = "Talent"; string talent = calculationString.Substring(8).TrimEnd(']'); int index = int.Parse(talent); if (index < talentList.Length) { requirementTalentsCombo.SelectedIndex = index; } } else if (calculationString.StartsWith("[Cost]", StringComparison.Ordinal)) { requirementCalculationCombo.SelectedItem = "Cost"; } else { if (Array.IndexOf(Calculations.OptimizableCalculationLabels, calculationString) >= 0) { requirementCalculationCombo.SelectedItem = calculationString; } } requirementGreaterCombo.SelectedIndex = requirement.LessThan ? 1 : 0; requirementNum.Value = (double)requirement.Value; } RequirementsStack.Children.Add(requirementGrid); }
public virtual void NumericUpDownPeerIsIRangeValueProvider() { NumericUpDown item = new NumericUpDown(); IRangeValueProvider provider = null; TestAsync( item, () => provider = FrameworkElementAutomationPeer.CreatePeerForElement(item) as IRangeValueProvider, () => Assert.IsNotNull(provider, "NumericUpDownAutomationPeer should implement IRangeValueProvider!")); }
public virtual void NumericUpDownPeerSupportsRangeValue() { NumericUpDown item = new NumericUpDown(); NumericUpDownAutomationPeer peer = null; IRangeValueProvider provider = null; TestAsync( item, () => peer = FrameworkElementAutomationPeer.CreatePeerForElement(item) as NumericUpDownAutomationPeer, () => provider = peer.GetPattern(PatternInterface.RangeValue) as IRangeValueProvider, () => Assert.IsNotNull(provider, "IRangeValueProvider peer should not be null!")); }
//-------------------------------------------------------------- /// <summary> /// When overridden in a derived class, is invoked whenever application code or internal /// processes call <see cref="FrameworkElement.ApplyTemplate"/>. /// </summary> public override void OnApplyTemplate() { if (_slider != null) { _slider.ValueChanged -= OnSliderChanged; _slider = null; } if (_int32ValueControl != null) { _int32ValueControl.ValueChanged -= OnInt32ValueChanged; _int32ValueControl = null; } if (_doubleValueControl != null) { _doubleValueControl.ValueChanged -= OnDoubleValueChanged; _doubleValueControl = null; } base.OnApplyTemplate(); _slider = GetTemplateChild("PART_Slider") as ColorSlider1D; if (_slider != null) _slider.ValueChanged += OnSliderChanged; _int32ValueControl = GetTemplateChild("PART_Int32Value") as NumericUpDown; if (_int32ValueControl != null) _int32ValueControl.ValueChanged += OnInt32ValueChanged; _doubleValueControl = GetTemplateChild("PART_DoubleValue") as NumericUpDown; if (_doubleValueControl != null) _doubleValueControl.ValueChanged += OnDoubleValueChanged; }
public virtual void NumericUpDownCreatesAutomationPeer() { NumericUpDown item = new NumericUpDown(); NumericUpDownAutomationPeer peer = null; TestAsync( item, () => peer = FrameworkElementAutomationPeer.CreatePeerForElement(item) as NumericUpDownAutomationPeer, () => Assert.IsNotNull(peer, "NumericUpDown peer should not be null!"), () => Assert.AreEqual(item, peer.Owner, "NumericUpDown should be owner of the peer!")); }
public virtual void CreateNumericUpDownPeer() { NumericUpDown item = new NumericUpDown(); new NumericUpDownAutomationPeer(item); }
/// <summary> /// Create an object on a Wrap/Stack-panel /// </summary> /// <param name="eValue">Value</param> /// <param name="pnlInner"></param> /// <param name="objType"></param> private void CreateElement(XElement eValue, object pnlInner) { string[] KeyValuePairArray; string[] KeyValuePair; string[] seperatorKeyValue = new string[] { "=" }; // object specific setup object obj = null; if (eValue.Attribute("id").Value.ToString().Contains("_nmlbl")) { obj = new Label(); (obj as Label).Content = eValue.Value; KeyValuePairArray = GetLayoutAttributes(eValue, (int)CreateItemEnum.enLabelTitle); } else if (eValue.Attribute("id").Value.ToString().Contains("_lbl")) { obj = new Label(); if (eValue.Element("start") != null) (obj as Label).Content = eValue.Element("start").Value; KeyValuePairArray = GetLayoutAttributes(eValue, (int)CreateItemEnum.enLabel); } else if (eValue.Attribute("id").Value.ToString().Contains("_cmbbx")) { obj = new ComboBox(); string start = ""; List<string> lItem = new List<string>((from item in eValue.Elements("item") select item.Value).ToList()); if (eValue.Element("start") != null) { if (lItem.IndexOf(eValue.Element("start").Value) == -1) lItem.Add(eValue.Element("start").Value); start = eValue.Element("start").Value; } lItem.Sort(); lItem.ForEach(delegate(string itm) { (obj as ComboBox).Items.Add(itm); }); (obj as ComboBox).SelectedItem = eValue.Element("start").Value; KeyValuePairArray = GetLayoutAttributes(eValue, (int)CreateItemEnum.enComboBox); } else if (eValue.Attribute("id").Value.ToString().Contains("_txtbx")) { obj = new TextBox(); if (eValue.Element("start") != null) (obj as TextBox).Text = eValue.Element("start").Value; (obj as TextBox).TextWrapping = TextWrapping.Wrap; if (eValue.Attribute("id").Value.ToString().Contains("_txtbxrdo")) (obj as TextBox).IsReadOnly = true; KeyValuePairArray = GetLayoutAttributes(eValue, (int)CreateItemEnum.enTextBox); } else if (eValue.Attribute("id").Value.ToString().Contains("_dt")) { obj = new Rating(); (obj as Rating).ItemCount = int.Parse(eValue.Element("maxshow").Value); if (eValue.Element("start") != null) (obj as Rating).Value = float.Parse(eValue.Element("start").Value) / (obj as Rating).ItemCount; switch (eValue.Element("look").Value) { case "dot": (obj as Rating).ItemContainerStyle = (Application.Current.Resources["RatingItemStyleDot"] as Style); break; case "square": (obj as Rating).ItemContainerStyle = (Application.Current.Resources["RatingItemStyleSquare"] as Style); break; default: break; } KeyValuePairArray = GetLayoutAttributes(eValue, (int)CreateItemEnum.enDot); } else if (eValue.Attribute("id").Value.ToString().Contains("_nmud")) { obj = new NumericUpDown(); if (eValue.Element("start") != null) (obj as NumericUpDown).Value = double.Parse(eValue.Element("start").Value); KeyValuePairArray = GetLayoutAttributes(eValue, (int)CreateItemEnum.enNumericUpDown); } else throw new UnknownObjectException(eValue.Attribute("id").Value.ToString()); // set object name (obj as Control).Name = eValue.Attribute("id").Value.ToString(); // set layout of object foreach (string str in KeyValuePairArray) { KeyValuePair = str.Split(seperatorKeyValue, StringSplitOptions.RemoveEmptyEntries); SetObjectAttribute(obj, KeyValuePair); } (pnlInner as Panel).Children.Add((obj as Control)); }