public void InitializeComponent() { if (_contentLoaded) { return; } _contentLoaded = true; System.Windows.Application.LoadComponent(this, new System.Uri("/SlvHanbaiClient;component/View/Dlg/Dlg_InpMaster.xaml", System.UriKind.Relative)); this.LayoutRoot = ((SlvHanbaiClient.Class.UI.ExGridLayoutRoot)(this.FindName("LayoutRoot"))); this.GridMaster = ((System.Windows.Controls.Grid)(this.FindName("GridMaster"))); this.UtlMaster = ((SlvHanbaiClient.View.UserControl.Master.Utl_MstPerson)(this.FindName("UtlMaster"))); this.dlgThemeShinyBlue = ((SlvHanbaiClient.View.Dlg.Theme.Dlg_ThemeShinyBlue)(this.FindName("dlgThemeShinyBlue"))); this.dlgThemeTwilightBlue = ((SlvHanbaiClient.View.Dlg.Theme.Dlg_ThemeTwilightBlue)(this.FindName("dlgThemeTwilightBlue"))); }
private void ExChildWindow_Loaded(object sender, RoutedEventArgs e) { if (Common.gWinGroupType != Common.geWinGroupType.InpMaster && Common.gWinGroupType != Common.geWinGroupType.InpMasterDetail) { this.DialogResult = false; //this.Close(); } this.GridMaster.Children.Clear(); // 証跡保存 DataPgEvidence.SaveLoadOrUnLoadEvidence(Common.gWinGroupType, Common.gWinMsterType, DataPgEvidence.geOperationType.Start); ExUserControl utl = null; switch (Common.gWinMsterType) { case Common.geWinMsterType.Company: utl = new Utl_MstCompany(); this.GridMaster.Children.Add(utl); this.Width = utl.Width + 20; break; case Common.geWinMsterType.CompanyGroup: utl = new Utl_MstCompanyGroup(); this.GridMaster.Children.Add(utl); this.Width = utl.Width + 20; break; case Common.geWinMsterType.User: utl = new Utl_MstUser(); this.GridMaster.Children.Add(utl); break; case Common.geWinMsterType.Person: utl = new Utl_MstPerson(); this.GridMaster.Children.Add(utl); break; case Common.geWinMsterType.Customer: utl = new Utl_MstCustomer(); this.GridMaster.Children.Add(utl); this.Width = utl.Width + 20; break; case Common.geWinMsterType.Commodity: utl = new Utl_MstCommodity(); this.GridMaster.Children.Add(utl); this.Width = utl.Width + 10; break; case Common.geWinMsterType.Condition: utl = new Utl_MstCondition(); this.GridMaster.Children.Add(utl); this.Width = utl.Width + 10; break; case Common.geWinMsterType.Class: utl = new Utl_MstClass(); this.GridMaster.Children.Add(utl); this.Width = utl.Width + 10; break; case Common.geWinMsterType.Supplier: utl = new Utl_MstSupplier(); this.GridMaster.Children.Add(utl); this.Width = utl.Width + 20; break; case Common.geWinMsterType.Authority: utl = new Utl_MstAuthority(); this.GridMaster.Children.Add(utl); this.Width = utl.Width + 20; break; case Common.geWinMsterType.Purchase: utl = new Utl_MstPurchase(); this.GridMaster.Children.Add(utl); this.Width = utl.Width + 20; break; default: break; } if (utl != null) this.Width = utl.Width + 20; this.listDisplayTabIndex = ExVisualTreeHelper.GetDisplayTabIndex(this.GridMaster); // Tab Index 保持 }