private void ButtonOxy_Click(object sender, RoutedEventArgs e) { try { Global.liczba_probek = Int32.Parse(Liczba_probek_textbox.Text.ToString()); Global.zakres_od = Int32.Parse(Zakres_od_textbox.Text.ToString()); Global.zakres_do = Int32.Parse(Zakres_do_textbox.Text.ToString()); Window4 wyk = new Window4(); wyk.ShowDialog(); } catch (Exception ex) { MessageBox.Show("Wypelnij wszystkie pola" + ex.Message); } }
private void Button_Click_2(object sender, RoutedEventArgs e) { var OpenFileDialog = new OpenFileDialog() { Filter = "Arkusz programu Microsoft Excel (*.xlsx)|*.xlsx" }; if (OpenFileDialog.ShowDialog() == true) { ExcelReader r = new ExcelReader(OpenFileDialog.FileName); r.Process(Global.OnExcelCell); } Window4 wyk = new Window4("tak"); wyk.ShowDialog(); }
void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) { switch (connectionId) { case 1: this.MyModel = ((Projekt.Window4)(target)); return; case 2: this.Model = ((System.Windows.Controls.Grid)(target)); return; case 3: this.Plot1 = ((OxyPlot.Wpf.Plot)(target)); return; case 4: #line 12 "..\..\Window4.xaml" ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.Button_Click); #line default #line hidden return; case 5: #line 13 "..\..\Window4.xaml" ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.Button_Click_1); #line default #line hidden return; } this._contentLoaded = true; }