/// <summary> /// 对各项数据进行初始化 /// </summary> /// <param name="mainWindow"></param> /// <param name="selectedItem"></param> /// <param name="filePath"></param> private void init(MainWindow mainWindow = null, int selectedItem = 1, string filePath = null) { this.mainWindow = mainWindow; selectedItemNum = selectedItem; if (selectedItem > 1) { defaultProject = mainWindow.projectList[selectedItem - 2]; } this.selectPath = filePath; getProjectCBItems(); setDefaultDate(); setDefaultPath(); setDefaultCreator(); }
void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) { switch (connectionId) { case 1: this.window = ((SE.MainWindow)(target)); return; case 2: this.label = ((System.Windows.Controls.Label)(target)); return; case 3: this.schTextBox = ((System.Windows.Controls.TextBox)(target)); #line 84 "..\..\MainWindow.xaml" this.schTextBox.GotFocus += new System.Windows.RoutedEventHandler(this.schTextBox_GotFocus); #line default #line hidden #line 84 "..\..\MainWindow.xaml" this.schTextBox.TextChanged += new System.Windows.Controls.TextChangedEventHandler(this.schTextBox_TextChanged); #line default #line hidden return; case 4: this.tabControl = ((System.Windows.Controls.TabControl)(target)); #line 85 "..\..\MainWindow.xaml" this.tabControl.SelectionChanged += new System.Windows.Controls.SelectionChangedEventHandler(this.tabControl_SelectionChanged); #line default #line hidden return; case 5: this.schTabItem = ((System.Windows.Controls.TabItem)(target)); return; case 6: this.fileListBox = ((System.Windows.Controls.ListBox)(target)); return; case 7: this.totalTablItem = ((System.Windows.Controls.TabItem)(target)); return; case 8: this.totalListBox = ((System.Windows.Controls.ListBox)(target)); #line 90 "..\..\MainWindow.xaml" this.totalListBox.Drop += new System.Windows.DragEventHandler(this.totalListBox_Drop); #line default #line hidden return; case 9: this.loadButton = ((System.Windows.Controls.Button)(target)); #line 93 "..\..\MainWindow.xaml" this.loadButton.Click += new System.Windows.RoutedEventHandler(this.load_Click); #line default #line hidden return; case 10: this.checkAllBox = ((System.Windows.Controls.CheckBox)(target)); #line 94 "..\..\MainWindow.xaml" this.checkAllBox.Checked += new System.Windows.RoutedEventHandler(this.checkAllBox_Checked); #line default #line hidden #line 94 "..\..\MainWindow.xaml" this.checkAllBox.Unchecked += new System.Windows.RoutedEventHandler(this.checkAllBox_Unchecked); #line default #line hidden return; case 11: this.rmAllButton = ((System.Windows.Controls.Button)(target)); #line 95 "..\..\MainWindow.xaml" this.rmAllButton.Click += new System.Windows.RoutedEventHandler(this.rmAllButton_Click); #line default #line hidden return; } this._contentLoaded = true; }
public modelPropertiesWindow(MainWindow mainWindow, int selectedItem) { InitializeComponent(); init(mainWindow, selectedItem); }
public modelPropertiesWindow(MainWindow mainWindow, int selectedItem, string filePath) { InitializeComponent(); init(mainWindow, selectedItem, filePath); }