public static void AgencyFillComboBox(i9ComboBox AgencyComboBox, DataTable i9AgencyDataTabe) { if (AgencyComboBox.Items.Count <= 0) { AgencyComboBox.Items.Clear(); foreach (DataRow dr in i9AgencyDataTabe.Rows) { ComboBoxItem cbi = new ComboBoxItem(); cbi.Content = dr["AgencyName"].ToString(); cbi.Tag = dr["i9AgencyID"].ToString(); int i = AgencyComboBox.Items.Add(cbi); } } if (AgencyComboBox.Items.Count > 0) { if (AgencyComboBox.SelectedItem == null) { AgencyComboBox.IsEnabled = false; AgencyComboBox.SelectedIndex = 0; AgencyComboBox.IsEnabled = true; } ComboBoxItem SelectCbi = (ComboBoxItem)AgencyComboBox.SelectedItem; //string i9AgencyID = SelectCbi.Tag.ToString(); } }
private void i9ComboBox_DropDownOpened(object sender, EventArgs e) { i9ComboBox i9cb = (i9ComboBox)sender; if (!String.IsNullOrEmpty(i9cb.i9BindCodeSetName) && i9cb.Items.Count <= 0) { ClientDataAccess cda = new ClientDataAccess(); DataTable dt = cda.GetDataTable("SELECT Code, CodeText FROM i9Code WHERE Enabled <> 0 AND CodeSetName = " + DataAccessUtilities.GetDBStr(i9cb.i9BindCodeSetName) + " Order By CodeText ", "i9Code"); i9ComboBox.PopulateCombobox(i9cb, dt, "i9Code"); } }
public static void PopulateCombobox(i9ComboBox lComboBox, DataTable dt, string ColumnName) { lComboBox.Items.Clear(); lComboBox.ItemsSource = ((IListSource)dt).GetList(); //foreach (DataRow dr in dt.Rows) //{ // lComboBox.Items.Add(dr[ColumnName].ToString()); //} }
void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) { switch (connectionId) { case 1: this.SaveButton = ((System.Windows.Controls.Button)(target)); #line 34 "..\..\..\..\Modules\Admin\ConfidentialityPage.xaml" this.SaveButton.Click += new System.Windows.RoutedEventHandler(this.SaveButton_Click); #line default #line hidden return; case 2: this.CancelButton = ((System.Windows.Controls.Button)(target)); #line 40 "..\..\..\..\Modules\Admin\ConfidentialityPage.xaml" this.CancelButton.Click += new System.Windows.RoutedEventHandler(this.CancelButton_Click); #line default #line hidden return; case 3: this.AgencyLabel = ((Invert911.InvertCommon.StandardGui.i9Label)(target)); return; case 4: this.AgencyComboBox = ((Invert911.InvertCommon.StandardGui.i9ComboBox)(target)); return; case 5: this.ErrorMsgLabel = ((System.Windows.Controls.Label)(target)); return; case 6: this.DynamicEntryControlsListBox = ((System.Windows.Controls.ListBox)(target)); return; } this._contentLoaded = true; }
void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) { switch (connectionId) { case 1: this.MainDockPanel = ((System.Windows.Controls.DockPanel)(target)); return; case 2: this.MainButton = ((System.Windows.Controls.Button)(target)); #line 12 "..\..\..\..\Modules\Admin\DynamicEntryAdminPage.xaml" this.MainButton.Click += new System.Windows.RoutedEventHandler(this.MainButton_Click); #line default #line hidden return; case 3: this.SaveButton = ((System.Windows.Controls.Button)(target)); #line 18 "..\..\..\..\Modules\Admin\DynamicEntryAdminPage.xaml" this.SaveButton.Click += new System.Windows.RoutedEventHandler(this.SaveButton_Click); #line default #line hidden return; case 4: this.CancelButton = ((System.Windows.Controls.Button)(target)); #line 24 "..\..\..\..\Modules\Admin\DynamicEntryAdminPage.xaml" this.CancelButton.Click += new System.Windows.RoutedEventHandler(this.CancelButton_Click); #line default #line hidden return; case 5: this.ErrorMsgLabel = ((System.Windows.Controls.Label)(target)); return; case 6: this.DynamicEntryControlsListBox = ((System.Windows.Controls.ListBox)(target)); return; case 7: this.SelectAllButton = ((System.Windows.Controls.Button)(target)); #line 60 "..\..\..\..\Modules\Admin\DynamicEntryAdminPage.xaml" this.SelectAllButton.Click += new System.Windows.RoutedEventHandler(this.SelectAllButton_Click); #line default #line hidden return; case 8: this.UnSelectAllButton = ((System.Windows.Controls.Button)(target)); #line 66 "..\..\..\..\Modules\Admin\DynamicEntryAdminPage.xaml" this.UnSelectAllButton.Click += new System.Windows.RoutedEventHandler(this.UnSelectAllButton_Click); #line default #line hidden return; case 9: this.DynamicEntryColumnsListView = ((System.Windows.Controls.ListView)(target)); return; case 10: this.ControlTypeComboBox = ((Invert911.InvertCommon.StandardGui.i9ComboBox)(target)); return; case 11: #line 139 "..\..\..\..\Modules\Admin\DynamicEntryAdminPage.xaml" ((System.Windows.Controls.TextBox)(target)).PreviewTextInput += new System.Windows.Input.TextCompositionEventHandler(this.TextBox_PreviewTextInput); #line default #line hidden return; case 12: this.CodeSetNameComboBox = ((Invert911.InvertCommon.StandardGui.i9ComboBox)(target)); return; case 13: this.DynamicEntryRulesListView = ((System.Windows.Controls.ListView)(target)); return; case 14: this.RefreshButton = ((System.Windows.Controls.Button)(target)); #line 172 "..\..\..\..\Modules\Admin\DynamicEntryAdminPage.xaml" this.RefreshButton.Click += new System.Windows.RoutedEventHandler(this.RefreshButton_Click); #line default #line hidden return; } this._contentLoaded = true; }
void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) { switch (connectionId) { case 1: this.AttachmentNew = ((System.Windows.Controls.Button)(target)); #line 12 "..\..\..\..\Modules\Common\Attachments.xaml" this.AttachmentNew.Click += new System.Windows.RoutedEventHandler(this.AttachmentNew_Click); #line default #line hidden return; case 2: this.AttachmentRemove = ((System.Windows.Controls.Button)(target)); #line 13 "..\..\..\..\Modules\Common\Attachments.xaml" this.AttachmentRemove.Click += new System.Windows.RoutedEventHandler(this.AttachmentRemove_Click); #line default #line hidden return; case 3: this.AttachmentOpen = ((System.Windows.Controls.Button)(target)); #line 14 "..\..\..\..\Modules\Common\Attachments.xaml" this.AttachmentOpen.Click += new System.Windows.RoutedEventHandler(this.AttachmentOpen_Click); #line default #line hidden return; case 4: this.AttachmentDataAdd = ((System.Windows.Controls.Button)(target)); return; case 5: this.AttachmentDataRemove = ((System.Windows.Controls.Button)(target)); return; case 6: this.MainWrapPanel = ((System.Windows.Controls.WrapPanel)(target)); return; case 7: this.NameLabel = ((Invert911.InvertCommon.StandardGui.i9Label)(target)); return; case 8: this.AttachmentNameTextBox = ((Invert911.InvertCommon.StandardGui.i9TextBox)(target)); return; case 9: this.NotesLabel = ((Invert911.InvertCommon.StandardGui.i9Label)(target)); return; case 10: this.AttachmentNotesTextBox = ((Invert911.InvertCommon.StandardGui.i9TextBox)(target)); return; case 11: this.CapturedateLabel = ((Invert911.InvertCommon.StandardGui.i9Label)(target)); return; case 12: this.CapturedateTextBox = ((Invert911.InvertCommon.StandardGui.i9TextBox)(target)); return; case 13: this.ImageTypeCodeLabel = ((Invert911.InvertCommon.StandardGui.i9Label)(target)); return; case 14: this.ImageTypeCodeComboBox = ((Invert911.InvertCommon.StandardGui.i9ComboBox)(target)); return; case 15: this.AttachmentImage = ((System.Windows.Controls.Image)(target)); return; case 16: this.AttachmentListView = ((System.Windows.Controls.ListView)(target)); return; } this._contentLoaded = true; }
void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) { switch (connectionId) { case 1: this.GeneralGroupBox = ((System.Windows.Controls.GroupBox)(target)); return; case 2: this.MainWrapPanel = ((System.Windows.Controls.WrapPanel)(target)); return; case 3: this.ActivityCategoryLabel = ((Invert911.InvertCommon.StandardGui.i9Label)(target)); return; case 4: this.ActivityCategoryTextBox = ((Invert911.InvertCommon.StandardGui.i9TextBox)(target)); return; case 5: this.DispatcherLabel = ((Invert911.InvertCommon.StandardGui.i9Label)(target)); return; case 6: this.DispatcherTextBox = ((Invert911.InvertCommon.StandardGui.i9ComboBox)(target)); return; case 7: this.DispatchLocationLabel = ((Invert911.InvertCommon.StandardGui.i9Label)(target)); return; case 8: this.DispatchLocationTextBox = ((Invert911.InvertCommon.StandardGui.i9TextBox)(target)); return; case 9: this.DispatchLocationOwnerNameLabel = ((Invert911.InvertCommon.StandardGui.i9Label)(target)); return; case 10: this.DispatchLocationOwnerNameTextBox = ((Invert911.InvertCommon.StandardGui.i9TextBox)(target)); return; case 11: this.EmailAddressLabel = ((Invert911.InvertCommon.StandardGui.i9Label)(target)); return; case 12: this.EmailAddressTextBox = ((Invert911.InvertCommon.StandardGui.i9TextBox)(target)); return; case 13: this.OperatorLabel = ((Invert911.InvertCommon.StandardGui.i9Label)(target)); return; case 14: this.OperatorTextBox = ((Invert911.InvertCommon.StandardGui.i9TextBox)(target)); return; case 15: this.PriorityCodeLabel = ((Invert911.InvertCommon.StandardGui.i9Label)(target)); return; case 16: this.PriorityCodeTextBox = ((Invert911.InvertCommon.StandardGui.i9TextBox)(target)); return; case 17: this.ServiceCallDateLabel = ((Invert911.InvertCommon.StandardGui.i9Label)(target)); return; case 18: this.ServiceCallDateTextBox = ((Invert911.InvertCommon.StandardGui.i9TextBox)(target)); return; case 19: this.ServiceCallerLabel = ((Invert911.InvertCommon.StandardGui.i9Label)(target)); return; case 20: this.ServiceCallerTextBox = ((Invert911.InvertCommon.StandardGui.i9TextBox)(target)); return; case 21: this.ServiceCallORILabel = ((Invert911.InvertCommon.StandardGui.i9Label)(target)); return; case 22: this.ServiceCallORITextBox = ((Invert911.InvertCommon.StandardGui.i9TextBox)(target)); return; case 23: this.ServiceCallOtherContactAddressLabel = ((Invert911.InvertCommon.StandardGui.i9Label)(target)); return; case 24: this.ServiceCallOtherContactAddressTextBox = ((Invert911.InvertCommon.StandardGui.i9TextBox)(target)); return; case 25: this.ServiceCallTimeLabel = ((Invert911.InvertCommon.StandardGui.i9Label)(target)); return; case 26: this.ServiceCallTimeTextBox = ((Invert911.InvertCommon.StandardGui.i9TextBox)(target)); return; case 27: this.SourceCodeLabel = ((Invert911.InvertCommon.StandardGui.i9Label)(target)); return; case 28: this.SourceCodeTextBox = ((Invert911.InvertCommon.StandardGui.i9TextBox)(target)); return; case 29: this.SourceTextLabel = ((Invert911.InvertCommon.StandardGui.i9Label)(target)); return; case 30: this.SourceTextTextBox = ((Invert911.InvertCommon.StandardGui.i9TextBox)(target)); return; case 31: this.TelephoneNumberLabel = ((Invert911.InvertCommon.StandardGui.i9Label)(target)); return; case 32: this.TelephoneNumberTextBox = ((Invert911.InvertCommon.StandardGui.i9TextBox)(target)); return; } this._contentLoaded = true; }
void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) { switch (connectionId) { case 1: this.LocationRemarksTextBox = ((Invert911.InvertCommon.StandardGui.i9TextBox)(target)); return; case 2: this.PredirectioTextBox = ((Invert911.InvertCommon.StandardGui.i9ComboBox)(target)); return; case 3: this.LocationRemarksLabel = ((Invert911.InvertCommon.StandardGui.i9Label)(target)); return; case 4: this.PredirectionLabel = ((Invert911.InvertCommon.StandardGui.i9Label)(target)); return; case 5: this.CityLabel = ((Invert911.InvertCommon.StandardGui.i9Label)(target)); return; case 6: this.StateComboBox = ((Invert911.InvertCommon.StandardGui.i9ComboBox)(target)); return; case 7: this.CityTextBox = ((Invert911.InvertCommon.StandardGui.i9ComboBox)(target)); return; case 8: this.ZipTextBox = ((Invert911.InvertCommon.StandardGui.i9TextBox)(target)); return; case 9: this.StateLabel = ((Invert911.InvertCommon.StandardGui.i9Label)(target)); return; case 10: this.ZipLabel = ((Invert911.InvertCommon.StandardGui.i9Label)(target)); return; case 11: this.BeatComboBox = ((Invert911.InvertCommon.StandardGui.i9ComboBox)(target)); return; case 12: this.BeatLabel = ((Invert911.InvertCommon.StandardGui.i9Label)(target)); return; case 13: this.comboBox3 = ((Invert911.InvertCommon.StandardGui.i9TextBox)(target)); return; case 14: this.comboBox4 = ((Invert911.InvertCommon.StandardGui.i9TextBox)(target)); return; case 15: this.HighwayTextBox = ((Invert911.InvertCommon.StandardGui.i9TextBox)(target)); return; case 16: this.comboBox6 = ((Invert911.InvertCommon.StandardGui.i9ComboBox)(target)); return; case 17: this.LatitudeLabel = ((Invert911.InvertCommon.StandardGui.i9Label)(target)); return; case 18: this.LongitudeLabel = ((Invert911.InvertCommon.StandardGui.i9Label)(target)); return; case 19: this.HighwayLabel = ((Invert911.InvertCommon.StandardGui.i9Label)(target)); return; case 20: this.MileMarkerLabel = ((Invert911.InvertCommon.StandardGui.i9Label)(target)); return; case 21: this.StreetNameTextBox = ((Invert911.InvertCommon.StandardGui.i9TextBox)(target)); return; case 22: this.StreetNameLabel = ((Invert911.InvertCommon.StandardGui.i9Label)(target)); return; case 23: this.StreetTypeLabel = ((Invert911.InvertCommon.StandardGui.i9Label)(target)); return; case 24: this.StreetNumberLabel = ((Invert911.InvertCommon.StandardGui.i9Label)(target)); return; case 25: this.StreetTypeComboBox = ((Invert911.InvertCommon.StandardGui.i9ComboBox)(target)); return; case 26: this.label1 = ((Invert911.InvertCommon.StandardGui.i9Label)(target)); return; case 27: this.StreetNumberextBox = ((Invert911.InvertCommon.StandardGui.i9TextBox)(target)); return; case 28: this.PostdirectionComboBox = ((Invert911.InvertCommon.StandardGui.i9ComboBox)(target)); return; case 29: this.ApartmentLabel = ((Invert911.InvertCommon.StandardGui.i9Label)(target)); return; case 30: this.ApartmenTextBox = ((Invert911.InvertCommon.StandardGui.i9TextBox)(target)); return; case 31: this.LotNumberLabel = ((Invert911.InvertCommon.StandardGui.i9Label)(target)); return; case 32: this.LotNumberTextBox = ((Invert911.InvertCommon.StandardGui.i9TextBox)(target)); return; case 33: this.LocationTypeComboBox = ((Invert911.InvertCommon.StandardGui.i9ComboBox)(target)); return; case 34: this.LocationTypeLabel = ((Invert911.InvertCommon.StandardGui.i9Label)(target)); return; } this._contentLoaded = true; }
void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) { switch (connectionId) { case 1: this.GeneralGroupBox = ((System.Windows.Controls.GroupBox)(target)); return; case 2: this.MainWrapPanel = ((System.Windows.Controls.WrapPanel)(target)); return; case 3: this.AgencyLabel = ((Invert911.InvertCommon.StandardGui.i9Label)(target)); return; case 4: this.AgencyTextBox = ((Invert911.InvertCommon.StandardGui.i9MultiComboBox)(target)); return; case 5: this.ReportNoLabel = ((Invert911.InvertCommon.StandardGui.i9Label)(target)); return; case 6: this.ReportNumberTextBox = ((Invert911.InvertCommon.StandardGui.i9TextBox)(target)); return; case 7: this.SupplementNoLabel = ((Invert911.InvertCommon.StandardGui.i9Label)(target)); return; case 8: this.SupplementNoTextBox = ((Invert911.InvertCommon.StandardGui.i9TextBox)(target)); return; case 9: this.StatusLabel = ((Invert911.InvertCommon.StandardGui.i9Label)(target)); return; case 10: this.StatusTextBox = ((Invert911.InvertCommon.StandardGui.i9ComboBox)(target)); return; case 11: this.ReportedDateLabel = ((Invert911.InvertCommon.StandardGui.i9Label)(target)); return; case 12: this.ReportedDateTextBox = ((System.Windows.Controls.DatePicker)(target)); return; case 13: this.NatureOfCallLabel = ((Invert911.InvertCommon.StandardGui.i9Label)(target)); return; case 14: this.NatureOfCallTextBox = ((Invert911.InvertCommon.StandardGui.i9ComboBox)(target)); return; case 15: this.psLabel34 = ((Invert911.InvertCommon.StandardGui.i9Label)(target)); return; case 16: this.BeginDateTextBox = ((Invert911.InvertCommon.StandardGui.i9TextBox)(target)); return; case 17: this.EndDateLabel = ((Invert911.InvertCommon.StandardGui.i9Label)(target)); return; case 18: this.EndDateTextBox = ((Invert911.InvertCommon.StandardGui.i9TextBox)(target)); return; case 19: this.EvidenceHeldIndicatorLabel = ((Invert911.InvertCommon.StandardGui.i9Label)(target)); return; case 20: this.EvidenceHeldIndicatorTextBox = ((Invert911.InvertCommon.StandardGui.i9TextBox)(target)); return; case 21: this.psLabel38 = ((Invert911.InvertCommon.StandardGui.i9Label)(target)); return; case 22: this.psTextBox19 = ((Invert911.InvertCommon.StandardGui.i9TextBox)(target)); return; case 23: this.psLabel39 = ((Invert911.InvertCommon.StandardGui.i9Label)(target)); return; case 24: this.psTextBox20 = ((Invert911.InvertCommon.StandardGui.i9TextBox)(target)); return; case 25: this.psLabel40 = ((Invert911.InvertCommon.StandardGui.i9Label)(target)); return; case 26: this.psTextBox21 = ((Invert911.InvertCommon.StandardGui.i9TextBox)(target)); return; case 27: this.label1 = ((Invert911.InvertCommon.StandardGui.i9Label)(target)); return; case 28: this.ORITextBox = ((Invert911.InvertCommon.StandardGui.i9TextBox)(target)); return; case 29: this.psLabel41 = ((Invert911.InvertCommon.StandardGui.i9Label)(target)); return; case 30: this.psTextBox22 = ((Invert911.InvertCommon.StandardGui.i9TextBox)(target)); return; case 31: this.psLabel37 = ((Invert911.InvertCommon.StandardGui.i9Label)(target)); return; case 32: this.psTextBox18 = ((Invert911.InvertCommon.StandardGui.i9TextBox)(target)); return; case 33: this.psLabel42 = ((Invert911.InvertCommon.StandardGui.i9Label)(target)); return; case 34: this.psTextBox23 = ((Invert911.InvertCommon.StandardGui.i9TextBox)(target)); return; case 35: this.psLabel43 = ((Invert911.InvertCommon.StandardGui.i9Label)(target)); return; case 36: this.psTextBox24 = ((Invert911.InvertCommon.StandardGui.i9TextBox)(target)); return; case 37: this.psLabel45 = ((Invert911.InvertCommon.StandardGui.i9Label)(target)); return; case 38: this.psTextBox26 = ((Invert911.InvertCommon.StandardGui.i9TextBox)(target)); return; case 39: this.psLabel46 = ((Invert911.InvertCommon.StandardGui.i9Label)(target)); return; case 40: this.psTextBox27 = ((Invert911.InvertCommon.StandardGui.i9TextBox)(target)); return; case 41: this.psLabel44 = ((Invert911.InvertCommon.StandardGui.i9Label)(target)); return; case 42: this.psTextBox25 = ((Invert911.InvertCommon.StandardGui.i9TextBox)(target)); return; case 43: this.psLabel47 = ((Invert911.InvertCommon.StandardGui.i9Label)(target)); return; case 44: this.psTextBox28 = ((Invert911.InvertCommon.StandardGui.i9TextBox)(target)); return; case 45: this.psLabel48 = ((Invert911.InvertCommon.StandardGui.i9Label)(target)); return; case 46: this.psTextBox29 = ((Invert911.InvertCommon.StandardGui.i9TextBox)(target)); return; case 47: this.psLabel49 = ((Invert911.InvertCommon.StandardGui.i9Label)(target)); return; case 48: this.psTextBox30 = ((Invert911.InvertCommon.StandardGui.i9TextBox)(target)); return; case 49: this.psLabel50 = ((Invert911.InvertCommon.StandardGui.i9Label)(target)); return; case 50: this.psTextBox31 = ((Invert911.InvertCommon.StandardGui.i9TextBox)(target)); return; case 51: this.IncidentLocation = ((Invert911.InvertCommon.Modules.Location.Location)(target)); return; case 52: this.IncidentTabControl = ((System.Windows.Controls.TabControl)(target)); return; case 53: this.IncidentCADServiceCall = ((Invert911.InvertCommon.Modules.CAD.CADServiceCall)(target)); return; } this._contentLoaded = true; }
void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) { switch (connectionId) { case 1: #line 8 "..\..\..\..\Modules\Admin\SecurityPage.xaml" ((Invert911.Admin.SecurityPage)(target)).Loaded += new System.Windows.RoutedEventHandler(this.Page_Loaded); #line default #line hidden return; case 2: this.ToolbarStackPanel = ((System.Windows.Controls.StackPanel)(target)); return; case 3: this.AddButton = ((System.Windows.Controls.Button)(target)); #line 23 "..\..\..\..\Modules\Admin\SecurityPage.xaml" this.AddButton.Click += new System.Windows.RoutedEventHandler(this.AddButton_Click); #line default #line hidden return; case 4: this.RefreshButton = ((System.Windows.Controls.Button)(target)); #line 29 "..\..\..\..\Modules\Admin\SecurityPage.xaml" this.RefreshButton.Click += new System.Windows.RoutedEventHandler(this.RefreshButton_Click); #line default #line hidden return; case 5: this.DeleteButton = ((System.Windows.Controls.Button)(target)); #line 35 "..\..\..\..\Modules\Admin\SecurityPage.xaml" this.DeleteButton.Click += new System.Windows.RoutedEventHandler(this.DeleteButton_Click); #line default #line hidden return; case 6: this.SelectAllButton = ((System.Windows.Controls.Button)(target)); #line 42 "..\..\..\..\Modules\Admin\SecurityPage.xaml" this.SelectAllButton.Click += new System.Windows.RoutedEventHandler(this.SelectAllButton_Click); #line default #line hidden return; case 7: this.UnSelectAllButton = ((System.Windows.Controls.Button)(target)); #line 48 "..\..\..\..\Modules\Admin\SecurityPage.xaml" this.UnSelectAllButton.Click += new System.Windows.RoutedEventHandler(this.UnSelectAllButton_Click); #line default #line hidden return; case 8: this.SaveButton = ((System.Windows.Controls.Button)(target)); #line 55 "..\..\..\..\Modules\Admin\SecurityPage.xaml" this.SaveButton.Click += new System.Windows.RoutedEventHandler(this.SaveButton_Click); #line default #line hidden return; case 9: this.CancelButton = ((System.Windows.Controls.Button)(target)); #line 61 "..\..\..\..\Modules\Admin\SecurityPage.xaml" this.CancelButton.Click += new System.Windows.RoutedEventHandler(this.CancelButton_Click); #line default #line hidden return; case 10: this.AgencyLabel = ((System.Windows.Controls.Label)(target)); return; case 11: this.AgencyComboBox = ((Invert911.InvertCommon.StandardGui.i9ComboBox)(target)); return; case 12: this.ErrorMsgLabel = ((System.Windows.Controls.Label)(target)); return; case 13: this.SecurityGroupsGroupBox = ((System.Windows.Controls.GroupBox)(target)); return; case 14: this.SecurityGroupsListBox = ((System.Windows.Controls.ListBox)(target)); #line 75 "..\..\..\..\Modules\Admin\SecurityPage.xaml" this.SecurityGroupsListBox.SelectionChanged += new System.Windows.Controls.SelectionChangedEventHandler(this.SecurityGroupsListBox_SelectionChanged); #line default #line hidden return; case 15: this.MainDockPanel = ((System.Windows.Controls.DockPanel)(target)); return; case 16: this.SecurityGroupTextbox = ((Invert911.InvertCommon.StandardGui.i9TextBox)(target)); return; case 17: this.SecurityGroupEditButton = ((System.Windows.Controls.Button)(target)); #line 84 "..\..\..\..\Modules\Admin\SecurityPage.xaml" this.SecurityGroupEditButton.Click += new System.Windows.RoutedEventHandler(this.SecurityGroupEditButton_Click); #line default #line hidden return; case 18: this.SecurityGroupSaveButton = ((System.Windows.Controls.Button)(target)); #line 85 "..\..\..\..\Modules\Admin\SecurityPage.xaml" this.SecurityGroupSaveButton.Click += new System.Windows.RoutedEventHandler(this.SecurityGroupSaveButton_Click); #line default #line hidden return; case 19: this.SecurityGroupCancelButton = ((System.Windows.Controls.Button)(target)); #line 86 "..\..\..\..\Modules\Admin\SecurityPage.xaml" this.SecurityGroupCancelButton.Click += new System.Windows.RoutedEventHandler(this.SecurityGroupCancelButton_Click); #line default #line hidden return; case 20: this.SecurityTabControl = ((System.Windows.Controls.TabControl)(target)); return; case 21: this.ModulesListView = ((System.Windows.Controls.ListView)(target)); return; case 22: this.TaskListView = ((System.Windows.Controls.ListView)(target)); return; } this._contentLoaded = true; }
void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) { switch (connectionId) { case 1: #line 10 "..\..\..\..\Modules\Admin\PersonnelPage.xaml" ((Invert911.InvertCommon.Modules.Admin.PersonnelPage)(target)).Initialized += new System.EventHandler(this.Page_Initialized); #line default #line hidden return; case 2: this.RefreshButton = ((System.Windows.Controls.Button)(target)); #line 23 "..\..\..\..\Modules\Admin\PersonnelPage.xaml" this.RefreshButton.Click += new System.Windows.RoutedEventHandler(this.RefreshButton_Click); #line default #line hidden return; case 3: this.AddButton = ((System.Windows.Controls.Button)(target)); #line 30 "..\..\..\..\Modules\Admin\PersonnelPage.xaml" this.AddButton.Click += new System.Windows.RoutedEventHandler(this.AddButton_Click); #line default #line hidden return; case 4: this.DeleteButton = ((System.Windows.Controls.Button)(target)); #line 36 "..\..\..\..\Modules\Admin\PersonnelPage.xaml" this.DeleteButton.Click += new System.Windows.RoutedEventHandler(this.DeleteButton_Click); #line default #line hidden return; case 5: this.SaveButton = ((System.Windows.Controls.Button)(target)); #line 43 "..\..\..\..\Modules\Admin\PersonnelPage.xaml" this.SaveButton.Click += new System.Windows.RoutedEventHandler(this.SaveButton_Click); #line default #line hidden return; case 6: this.CancelButton = ((System.Windows.Controls.Button)(target)); #line 49 "..\..\..\..\Modules\Admin\PersonnelPage.xaml" this.CancelButton.Click += new System.Windows.RoutedEventHandler(this.CancelButton_Click); #line default #line hidden return; case 7: this.ExportButton = ((System.Windows.Controls.Button)(target)); #line 56 "..\..\..\..\Modules\Admin\PersonnelPage.xaml" this.ExportButton.Click += new System.Windows.RoutedEventHandler(this.ExportButton_Click); #line default #line hidden return; case 8: this.AgencyLabel = ((System.Windows.Controls.Label)(target)); return; case 9: this.AgencyComboBox = ((Invert911.InvertCommon.StandardGui.i9ComboBox)(target)); return; case 10: this.PersonnelListView = ((System.Windows.Controls.ListView)(target)); #line 82 "..\..\..\..\Modules\Admin\PersonnelPage.xaml" this.PersonnelListView.SelectionChanged += new System.Windows.Controls.SelectionChangedEventHandler(this.PersonnelListView_SelectionChanged); #line default #line hidden return; case 11: this.FirstNameTextBox = ((Invert911.InvertCommon.StandardGui.i9TextBox)(target)); return; case 12: this.FirstNameLabel = ((Invert911.InvertCommon.StandardGui.i9Label)(target)); return; case 13: this.LastNameLabel = ((Invert911.InvertCommon.StandardGui.i9Label)(target)); return; case 14: this.LastNameTextBox = ((Invert911.InvertCommon.StandardGui.i9TextBox)(target)); return; case 15: this.MiddleNameTextBox = ((Invert911.InvertCommon.StandardGui.i9TextBox)(target)); return; case 16: this.MiddleNameLabel = ((Invert911.InvertCommon.StandardGui.i9Label)(target)); return; case 17: this.BadgeNumberTextBox = ((Invert911.InvertCommon.StandardGui.i9TextBox)(target)); return; case 18: this.BadgeNumberLabel = ((Invert911.InvertCommon.StandardGui.i9Label)(target)); return; case 19: this.OfficerORITextBox = ((Invert911.InvertCommon.StandardGui.i9TextBox)(target)); return; case 20: this.OfficerORILabel = ((Invert911.InvertCommon.StandardGui.i9Label)(target)); return; case 21: this.PasswordTextBox = ((Invert911.InvertCommon.StandardGui.i9TextBox)(target)); return; case 22: this.PasswordLabel = ((Invert911.InvertCommon.StandardGui.i9Label)(target)); return; case 23: this.OfficerAssignmentTypeCodeTextBox = ((Invert911.InvertCommon.StandardGui.i9TextBox)(target)); return; case 24: this.OfficerAssignmentTypeCodeLabel = ((Invert911.InvertCommon.StandardGui.i9Label)(target)); return; case 25: this.OfficerActivityTypeCodeTextBox = ((Invert911.InvertCommon.StandardGui.i9TextBox)(target)); return; case 26: this.OfficerActivityTypeCodeLabel = ((Invert911.InvertCommon.StandardGui.i9Label)(target)); return; case 27: this.EnabledCheckBox = ((Invert911.InvertCommon.StandardGui.i9CheckBox)(target)); return; case 28: this.EmailTextBox = ((Invert911.InvertCommon.StandardGui.i9TextBox)(target)); return; case 29: this.EmailLabel = ((Invert911.InvertCommon.StandardGui.i9Label)(target)); return; case 30: this.ModuleNamesListView = ((System.Windows.Controls.ListView)(target)); return; case 31: this.TaskNameListView = ((System.Windows.Controls.ListView)(target)); return; } this._contentLoaded = true; }
void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) { switch (connectionId) { case 1: #line 8 "..\..\..\..\Modules\Admin\PersonnelGroupsPage.xaml" ((Invert911.InvertCommon.Modules.Admin.PersonnelGroupsPage)(target)).Loaded += new System.Windows.RoutedEventHandler(this.Page_Loaded); #line default #line hidden return; case 2: this.RefreshButton = ((System.Windows.Controls.Button)(target)); #line 32 "..\..\..\..\Modules\Admin\PersonnelGroupsPage.xaml" this.RefreshButton.Click += new System.Windows.RoutedEventHandler(this.RefreshButton_Click); #line default #line hidden return; case 3: this.SaveButton = ((System.Windows.Controls.Button)(target)); #line 40 "..\..\..\..\Modules\Admin\PersonnelGroupsPage.xaml" this.SaveButton.Click += new System.Windows.RoutedEventHandler(this.SaveButton_Click); #line default #line hidden return; case 4: this.CancelButton = ((System.Windows.Controls.Button)(target)); #line 46 "..\..\..\..\Modules\Admin\PersonnelGroupsPage.xaml" this.CancelButton.Click += new System.Windows.RoutedEventHandler(this.CancelButton_Click); #line default #line hidden return; case 5: this.AgencyLabel = ((System.Windows.Controls.Label)(target)); return; case 6: this.AgencyComboBox = ((Invert911.InvertCommon.StandardGui.i9ComboBox)(target)); return; case 7: this.ErrorMsgLabel = ((System.Windows.Controls.Label)(target)); return; case 8: this.SecurityGroupsListView = ((System.Windows.Controls.ListBox)(target)); #line 63 "..\..\..\..\Modules\Admin\PersonnelGroupsPage.xaml" this.SecurityGroupsListView.SelectionChanged += new System.Windows.Controls.SelectionChangedEventHandler(this.SecurityGroupsListBox_SelectionChanged); #line default #line hidden return; case 9: this.PersonnelListView = ((System.Windows.Controls.ListView)(target)); return; } this._contentLoaded = true; }
private void BuildHorizontalUI() { try { //Clear Old Controls foreach (Control c in MainWrapPanel.Children) { MainWrapPanel.Children.Remove(c); } //TODO: Need to sort the mTableSchema table //Clear new Controls foreach (DataRow dr in mTableSchema.Rows) { if (dr["Enabled"].ToString() != "0") { string ColumnName = dr["ColumnName"].ToString(); string LabelText = dr["LabelText"].ToString(); Label l = new Label() { Height = 28, Name = ColumnName + "Label", HorizontalContentAlignment = System.Windows.HorizontalAlignment.Left, Content = LabelText }; //tb.TextChanged += new TextChangedEventHandler(TextBox_TextChanged); //tb.LostFocus += new RoutedEventHandler(TextBox_LostFocus); //AddRules(tb); RulesValidation myRulesValidation = new RulesValidation(); myRulesValidation.module = this.mModuleSection; myRulesValidation.table = this.mTableName; myRulesValidation.column = ColumnName; myRulesValidation.data = mCollectionView; Binding bindMyColumn = new Binding(); bindMyColumn.Path = new PropertyPath(ColumnName); bindMyColumn.ValidationRules.Clear(); bindMyColumn.ValidationRules.Add(myRulesValidation); bindMyColumn.ValidatesOnDataErrors = true; StackPanel sp = new StackPanel(); sp.Children.Add(l); //UIElement InputObject; switch (dr["CtrlTypeName"].ToString()) { case "i9TextBox": i9TextBox i9tb = new i9TextBox() { Height = 28, Name = ColumnName + "TextBox", TextAlignment = System.Windows.TextAlignment.Left, HorizontalContentAlignment = System.Windows.HorizontalAlignment.Right, }; i9tb.IsReadOnly = false; if (dr["IsReadOnly"].ToString() != "0") { i9tb.IsReadOnly = true; } if (dr["MaxLength"] is DBNull) { //Do Nothing Console.WriteLine("MaxLength is db null"); } else { i9tb.MaxLength = System.Convert.ToInt32(dr["MaxLength"].ToString()); } i9tb.SetBinding(TextBox.TextProperty, bindMyColumn); sp.Children.Add(i9tb); break; case "i9ComboBox": i9ComboBox i9cb = new i9ComboBox() { Height = 28, Name = ColumnName + "ComboBox", //TextAlignment = System.Windows.TextAlignment.Left, //HorizontalContentAlignment = System.Windows.HorizontalAlignment.Right, }; i9cb.IsReadOnly = false; if (dr["IsReadOnly"].ToString() != "0") { i9cb.IsReadOnly = true; } if (dr["MaxLength"] is DBNull) { //Do Nothing Console.WriteLine("MaxLength is db null"); } else { i9cb.MaxLength = System.Convert.ToInt32(dr["MaxLength"].ToString()); } if (dr["CodeSetName"] != DBNull.Value) i9cb.i9BindCodeSetName = dr["CodeSetName"].ToString(); i9cb.DisplayMemberPath = "Code"; i9cb.SelectedValuePath="Code"; i9cb.SelectedValue = ColumnName; i9cb.SetComboBoxEvents(); i9cb.SetBinding(ComboBox.TextProperty, bindMyColumn); //i9cb.SetBinding(ComboBox.SelectedItemProperty, bindMyColumn); sp.Children.Add(i9cb); break; default: TextBox tb = new TextBox() { Height = 28, Name = ColumnName + "TextBox", TextAlignment = System.Windows.TextAlignment.Left, HorizontalContentAlignment = System.Windows.HorizontalAlignment.Right, }; tb.SetBinding(TextBox.TextProperty, bindMyColumn); sp.Children.Add(tb); break; } //bindMyColumn.Source = mDataView; sp.Margin = new Thickness(0, 5, 5, 0); MainWrapPanel.Children.Add(sp); } else { LogManager.Instance.LogMessage("Disabled ColumnName " + dr["ColumnName"].ToString()); } } } catch (FileNotFoundException ex) { LogManager.Instance.LogMessage("DynamicEntryControl", "BuildHorizontalUI", "Error FileNotFoundException", ex); } }
void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) { switch (connectionId) { case 1: #line 10 "..\..\..\..\Modules\Admin\CodeAdminPage.xaml" ((Invert911.InvertCommon.Modules.Admin.CodeAdminPage)(target)).Initialized += new System.EventHandler(this.Page_Initialized); #line default #line hidden return; case 2: this.RefreshButton = ((System.Windows.Controls.Button)(target)); #line 13 "..\..\..\..\Modules\Admin\CodeAdminPage.xaml" this.RefreshButton.Click += new System.Windows.RoutedEventHandler(this.RefreshButton_Click); #line default #line hidden return; case 3: this.ExportButton = ((System.Windows.Controls.Button)(target)); #line 20 "..\..\..\..\Modules\Admin\CodeAdminPage.xaml" this.ExportButton.Click += new System.Windows.RoutedEventHandler(this.ExportButton_Click); #line default #line hidden return; case 4: this.AgencyLabel = ((Invert911.InvertCommon.StandardGui.i9Label)(target)); return; case 5: this.AgencyComboBox = ((Invert911.InvertCommon.StandardGui.i9ComboBox)(target)); return; case 6: this.CodeTypesListBox = ((System.Windows.Controls.ListBox)(target)); #line 33 "..\..\..\..\Modules\Admin\CodeAdminPage.xaml" this.CodeTypesListBox.SelectionChanged += new System.Windows.Controls.SelectionChangedEventHandler(this.CodeTypesListBox_SelectionChanged); #line default #line hidden return; case 7: this.MainWrapPanel = ((System.Windows.Controls.WrapPanel)(target)); return; case 8: this.AddButton = ((System.Windows.Controls.Button)(target)); #line 76 "..\..\..\..\Modules\Admin\CodeAdminPage.xaml" this.AddButton.Click += new System.Windows.RoutedEventHandler(this.AddButton_Click); #line default #line hidden return; case 9: this.DeleteButton = ((System.Windows.Controls.Button)(target)); #line 82 "..\..\..\..\Modules\Admin\CodeAdminPage.xaml" this.DeleteButton.Click += new System.Windows.RoutedEventHandler(this.DeleteButton_Click); #line default #line hidden return; case 10: this.SaveButton = ((System.Windows.Controls.Button)(target)); #line 89 "..\..\..\..\Modules\Admin\CodeAdminPage.xaml" this.SaveButton.Click += new System.Windows.RoutedEventHandler(this.SaveButton_Click); #line default #line hidden return; case 11: this.CancelButton = ((System.Windows.Controls.Button)(target)); #line 95 "..\..\..\..\Modules\Admin\CodeAdminPage.xaml" this.CancelButton.Click += new System.Windows.RoutedEventHandler(this.CancelButton_Click); #line default #line hidden return; case 12: this.CodeSetExportButton = ((System.Windows.Controls.Button)(target)); #line 103 "..\..\..\..\Modules\Admin\CodeAdminPage.xaml" this.CodeSetExportButton.Click += new System.Windows.RoutedEventHandler(this.CodeSetExportButton_Click); #line default #line hidden return; case 13: this.CodeListView = ((System.Windows.Controls.ListView)(target)); return; } this._contentLoaded = true; }