private static String GetText(Object item, FilterComboBox comboBox) { var propertyName = (String)comboBox.GetValue(TextSearch.TextPathProperty); return (String)GetPropertyValue(item, propertyName); }
void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) { switch (connectionId) { case 1: #line 10 "..\..\..\..\..\..\WorkPlace\Doctor\Menu\MenuItemPatient\SetDiagnosis.xaml" ((DoctorHelper.WorkPlace.Doctor.Menu.MenuItemPatient.SetDiagnosis)(target)).Closed += new System.EventHandler(this.Window_Closed); #line default #line hidden return; case 2: this.AnimationLoading = ((DoctorHelper.Resources.Animation)(target)); return; case 3: this.FullGrid = ((System.Windows.Controls.Grid)(target)); return; case 4: this.ComboBoxDisease = ((DoctorHelper.Resources.FilterComboBox)(target)); return; case 5: this.TextBoxDiagnosis = ((System.Windows.Controls.TextBox)(target)); return; case 6: this.TextBoxTreatment = ((System.Windows.Controls.TextBox)(target)); return; case 7: this.ButtonSaveDiagnosis = ((System.Windows.Controls.Button)(target)); #line 54 "..\..\..\..\..\..\WorkPlace\Doctor\Menu\MenuItemPatient\SetDiagnosis.xaml" this.ButtonSaveDiagnosis.Click += new System.Windows.RoutedEventHandler(this.ButtonSaveDiagnosis_Click); #line default #line hidden return; case 8: this.ButtonAddPhoto = ((System.Windows.Controls.Button)(target)); #line 62 "..\..\..\..\..\..\WorkPlace\Doctor\Menu\MenuItemPatient\SetDiagnosis.xaml" this.ButtonAddPhoto.Click += new System.Windows.RoutedEventHandler(this.ButtonAddPhoto_Click); #line default #line hidden return; case 9: this.ListBoxPhoto = ((System.Windows.Controls.ListBox)(target)); #line 70 "..\..\..\..\..\..\WorkPlace\Doctor\Menu\MenuItemPatient\SetDiagnosis.xaml" this.ListBoxPhoto.MouseDoubleClick += new System.Windows.Input.MouseButtonEventHandler(this.ListBoxPhoto_MouseDoubleClick); #line default #line hidden return; case 10: this.ListBoxProcedure = ((System.Windows.Controls.ListBox)(target)); #line 84 "..\..\..\..\..\..\WorkPlace\Doctor\Menu\MenuItemPatient\SetDiagnosis.xaml" this.ListBoxProcedure.MouseDoubleClick += new System.Windows.Input.MouseButtonEventHandler(this.ListBoxProcedure_MouseDoubleClick); #line default #line hidden return; case 11: this.ComboBoxProcedure = ((System.Windows.Controls.ComboBox)(target)); #line 91 "..\..\..\..\..\..\WorkPlace\Doctor\Menu\MenuItemPatient\SetDiagnosis.xaml" this.ComboBoxProcedure.SelectionChanged += new System.Windows.Controls.SelectionChangedEventHandler(this.ComboBoxProcedure_SelectionChanged); #line default #line hidden return; } this._contentLoaded = true; }
private static bool IsItemsEmpty(FilterComboBox comboBox) { return !comboBox.HasItems || comboBox.Items == null; }