Example #1
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.ForaWindow1 = ((SZI.ForaWindow)(target));

            #line 8 "..\..\ForaWindow.xaml"
                this.ForaWindow1.Loaded += new System.Windows.RoutedEventHandler(this.ForaWindow1_Load);

            #line default
            #line hidden
                return;

            case 2:
                this.FormaA = ((System.Windows.Controls.Button)(target));

            #line 18 "..\..\ForaWindow.xaml"
                this.FormaA.Click += new System.Windows.RoutedEventHandler(this.FormaA_Click);

            #line default
            #line hidden
                return;
            }
            this._contentLoaded = true;
        }
Example #2
0
 public ForaWindow(string name, MainWindow startForm, int id)
 {
     InitializeComponent();
     fw                 = this;
     this.startForm     = startForm;
     this.name          = name;
     this.id            = id;
     ForaWindow1.Title += " «" + name + "»";
 }
Example #3
0
 /* Открытие файла xml (двойной клик на название файла) */
 private void FilesListBox_MouseDoubleClick(object sender, MouseButtonEventArgs e)
 {
     if (FilesListBox.SelectedItem != null)
     {
         ForaWindow eForm = new ForaWindow(FilesListBox.SelectedItem.ToString(), startForm, id);
         eForm.Owner = this;
         eForm.WindowStartupLocation = WindowStartupLocation.CenterOwner;
         eForm.ShowDialog();
     }
 }
Example #4
0
 public FormaA(string name, ForaWindow fw, int formNumber, int id)
 {
     this.name = name;
     InitializeComponent();
     this.fw         = fw;
     this.formNumber = formNumber;
     this.id         = id;
     FormaA2.Title   = " «" + name + "»";
     toFillTreeView(formNumber);
     //toFillTextBoxesFormaA_list1();
     addImg.Source = new BitmapImage(new Uri(AppDomain.CurrentDomain.BaseDirectory + "\\images\\add.png", UriKind.Absolute));
 }
Example #5
0
 /* Открытие файла xml (кнопка) */
 private void SelectBtn_Click(object sender, RoutedEventArgs e)
 {
     if (FilesListBox.SelectedItem != null)
     {
         ForaWindow eForm = new ForaWindow(FilesListBox.SelectedItem.ToString(), startForm, id);
         eForm.Owner = this;
         eForm.WindowStartupLocation = WindowStartupLocation.CenterOwner;
         eForm.ShowDialog();
     }
     else
     {
         MessageBox.Show("Ошибка! Не выбрано дело!");
     }
 }