示例#1
0
 /// <summary>
 /// 拖拽文件进入加载窗口
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 private void totalListBox_Drop(object sender, DragEventArgs e)
 {
     try
     {
         string msg;
         if (e.Data.GetDataPresent(DataFormats.FileDrop))
         {
             msg = ((System.Array)e.Data.GetData(DataFormats.FileDrop)).GetValue(0).ToString();
         }
         else
         {
             return;
         }
         if (!(System.IO.Path.GetExtension(msg).Equals(".par") || System.IO.Path.GetExtension(msg).Equals(".asm")))
         {
             return;
         }
         modelPropertiesWindow ModelPropertiesWindow = new modelPropertiesWindow(this, tabControl.SelectedIndex, msg);
         ModelPropertiesWindow.ShowDialog();
     }
     catch (Exception ex)
     {
         MessageBox.Show(ex.Message);
     }
 }
示例#2
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.ModelPropertiesWindow = ((SE.modelPropertiesWindow)(target));
                return;

            case 2:
                this.label1 = ((System.Windows.Controls.Label)(target));
                return;

            case 3:
                this.creatorTextBox = ((System.Windows.Controls.TextBox)(target));
                return;

            case 4:
                this.label2 = ((System.Windows.Controls.Label)(target));
                return;

            case 5:
                this.label3 = ((System.Windows.Controls.Label)(target));
                return;

            case 6:
                this.label4 = ((System.Windows.Controls.Label)(target));
                return;

            case 7:
                this.datePicker = ((System.Windows.Controls.DatePicker)(target));
                return;

            case 8:
                this.AsmModelCheckBox = ((System.Windows.Controls.CheckBox)(target));
                return;

            case 9:
                this.typeComboBox = ((System.Windows.Controls.ComboBox)(target));
                return;

            case 10:
                this.projectComboBox = ((System.Windows.Controls.ComboBox)(target));
                return;

            case 11:
                this.enginDrwCheckBox = ((System.Windows.Controls.CheckBox)(target));
                return;

            case 12:
                this.label = ((System.Windows.Controls.Label)(target));
                return;

            case 13:
                this.filePathTextBox = ((System.Windows.Controls.TextBox)(target));

            #line 26 "..\..\ModelPropertiesWindow.xaml"
                this.filePathTextBox.TextChanged += new System.Windows.Controls.TextChangedEventHandler(this.filePathTextBox_TextChanged);

            #line default
            #line hidden
                return;

            case 14:
                this.label5 = ((System.Windows.Controls.Label)(target));
                return;

            case 15:
                this.nameTextBox = ((System.Windows.Controls.TextBox)(target));
                return;

            case 16:
                this.saveButton = ((System.Windows.Controls.Button)(target));

            #line 29 "..\..\ModelPropertiesWindow.xaml"
                this.saveButton.Click += new System.Windows.RoutedEventHandler(this.saveButton_Click);

            #line default
            #line hidden
                return;

            case 17:
                this.cancelButton = ((System.Windows.Controls.Button)(target));

            #line 30 "..\..\ModelPropertiesWindow.xaml"
                this.cancelButton.Click += new System.Windows.RoutedEventHandler(this.cancelButton_Click);

            #line default
            #line hidden
                return;

            case 18:
                this.button = ((System.Windows.Controls.Button)(target));

            #line 31 "..\..\ModelPropertiesWindow.xaml"
                this.button.Click += new System.Windows.RoutedEventHandler(this.button_Click);

            #line default
            #line hidden
                return;
            }
            this._contentLoaded = true;
        }
示例#3
0
 /// <summary>
 /// 拖拽文件进入加载窗口
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 private void totalListBox_Drop(object sender, DragEventArgs e)
 {
     try
     {
         string msg;
         if (e.Data.GetDataPresent(DataFormats.FileDrop))
         {
             msg = ((System.Array)e.Data.GetData(DataFormats.FileDrop)).GetValue(0).ToString();
         }
         else
         {
             return;
         }
         if (!(System.IO.Path.GetExtension(msg).Equals(".par") || System.IO.Path.GetExtension(msg).Equals(".asm"))) return;
         modelPropertiesWindow ModelPropertiesWindow = new modelPropertiesWindow(this, tabControl.SelectedIndex, msg);
         ModelPropertiesWindow.ShowDialog();
     }
     catch(Exception ex)
     {
         MessageBox.Show(ex.Message);
     }
 }
示例#4
0
 /// <summary>
 /// 通过加载按钮进入加载窗口
 /// </summary>
 private void launchModelPropertiesWindows()
 {
         modelPropertiesWindow ModelPropertiesWindow = new modelPropertiesWindow(this, tabControl.SelectedIndex);
         ModelPropertiesWindow.ShowDialog();
 }
示例#5
0
 void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) {
     switch (connectionId)
     {
     case 1:
     this.ModelPropertiesWindow = ((SE.modelPropertiesWindow)(target));
     return;
     case 2:
     this.label1 = ((System.Windows.Controls.Label)(target));
     return;
     case 3:
     this.createrBox = ((System.Windows.Controls.TextBox)(target));
     return;
     case 4:
     this.label2 = ((System.Windows.Controls.Label)(target));
     return;
     case 5:
     this.label3 = ((System.Windows.Controls.Label)(target));
     return;
     case 6:
     this.label4 = ((System.Windows.Controls.Label)(target));
     return;
     case 7:
     this.AsmModelCheckBox = ((System.Windows.Controls.CheckBox)(target));
     return;
     case 8:
     this.modelTypeComboBox = ((System.Windows.Controls.ComboBox)(target));
     return;
     case 9:
     this.projectComboBox = ((System.Windows.Controls.ComboBox)(target));
     return;
     case 10:
     this.enginDrwCheckBox = ((System.Windows.Controls.CheckBox)(target));
     return;
     case 11:
     this.label = ((System.Windows.Controls.Label)(target));
     return;
     case 12:
     this.filePathTextBox = ((System.Windows.Controls.TextBox)(target));
     return;
     case 13:
     this.label5 = ((System.Windows.Controls.Label)(target));
     return;
     case 14:
     this.textBox1 = ((System.Windows.Controls.TextBox)(target));
     return;
     case 15:
     this.saveButton = ((System.Windows.Controls.Button)(target));
     return;
     case 16:
     this.cancelButton = ((System.Windows.Controls.Button)(target));
     
     #line 30 "..\..\ModelProperties.xaml"
     this.cancelButton.Click += new System.Windows.RoutedEventHandler(this.cancelButton_Click);
     
     #line default
     #line hidden
     return;
     case 17:
     this.button = ((System.Windows.Controls.Button)(target));
     
     #line 31 "..\..\ModelProperties.xaml"
     this.button.Click += new System.Windows.RoutedEventHandler(this.button_Click);
     
     #line default
     #line hidden
     return;
     }
     this._contentLoaded = true;
 }
示例#6
0
        /// <summary>
        /// 通过加载按钮进入加载窗口
        /// </summary>
        private void launchModelPropertiesWindows()
        {
            modelPropertiesWindow ModelPropertiesWindow = new modelPropertiesWindow(this, tabControl.SelectedIndex);

            ModelPropertiesWindow.ShowDialog();
        }