private void SMS_Click(object sender, RoutedEventArgs e) { Window1 W1 = new Window1(); W1.txtPhone_W1.Text = txtPhone.Text; W1.Show(); Hide(); }
private void btnOk_Click(object sender, RoutedEventArgs e) { if (adminid.Text == "admin" && admin_password.Password =="password") { Window1 Adminwindow = new Window1(); Adminwindow.Show(); Adminwindow.lblGreeting.Content = adminid.Text; this.Hide(); } else { MessageBox.Show("Incorrect UserID or Password"); } }
private void Button_Click_4(object sender, RoutedEventArgs e) { Window1 w = new Window1(); w.Show(); }
void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) { switch (connectionId) { case 1: this.windowframe = ((WpfApplication2.Window1)(target)); #line 8 "..\..\Window1.xaml" this.windowframe.SizeChanged += new System.Windows.SizeChangedEventHandler(this.windowframe_SizeChanged); #line default #line hidden return; case 2: this.tmp = ((System.Windows.Controls.Button)(target)); return; case 3: this.tmp2 = ((System.Windows.Controls.Button)(target)); return; case 4: this.txt_SMS = ((System.Windows.Controls.TextBox)(target)); return; case 5: this.bSMS = ((System.Windows.Controls.Button)(target)); #line 19 "..\..\Window1.xaml" this.bSMS.Click += new System.Windows.RoutedEventHandler(this.SMS_Click); #line default #line hidden return; case 6: this.bCancel = ((System.Windows.Controls.Button)(target)); #line 20 "..\..\Window1.xaml" this.bCancel.Click += new System.Windows.RoutedEventHandler(this.Cancel_Click); #line default #line hidden return; case 7: this.bBackspace = ((System.Windows.Controls.Button)(target)); #line 21 "..\..\Window1.xaml" this.bBackspace.Click += new System.Windows.RoutedEventHandler(this.bBackspace_Click); #line default #line hidden return; case 8: this.label1 = ((System.Windows.Controls.Label)(target)); return; case 9: this.txtPhone_W1 = ((System.Windows.Controls.TextBox)(target)); return; case 10: this.SMS_sound = ((System.Windows.Controls.MediaElement)(target)); return; } this._contentLoaded = true; }
/* ====================================================================================================== * COMMENT ShowSettingWindow * ====================================================================================================== * Display the window for edditing program settings * * * ======================================================================================================*/ private void ShowSettingWindow() { var windw_Settings = new Window1(); windw_Settings.Show(); }
private void button1_Click(object sender, RoutedEventArgs e) { Window1 obj=new Window1() ; obj.Show(); }
void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) { switch (connectionId) { case 1: this.frmSortNews = ((WpfApplication2.Window1)(target)); return; case 2: this.Title = ((System.Windows.Controls.StackPanel)(target)); return; case 3: this.gbxDateTime = ((System.Windows.Controls.GroupBox)(target)); return; case 4: this.radioToday = ((System.Windows.Controls.RadioButton)(target)); return; case 5: this.radioAllNews = ((System.Windows.Controls.RadioButton)(target)); return; case 6: this.radioPeriod = ((System.Windows.Controls.RadioButton)(target)); #line 40 "..\..\Window1.xaml" this.radioPeriod.Click += new System.Windows.RoutedEventHandler(this.radioPeriod_Click); #line default #line hidden #line 40 "..\..\Window1.xaml" this.radioPeriod.Unchecked += new System.Windows.RoutedEventHandler(this.radioPeriod_Unchecked); #line default #line hidden return; case 7: this.dpFrom = ((System.Windows.Controls.DatePicker)(target)); return; case 8: this.dpTo = ((System.Windows.Controls.DatePicker)(target)); return; case 9: this.gbxViews = ((System.Windows.Controls.GroupBox)(target)); return; case 10: this.radioAllViews = ((System.Windows.Controls.RadioButton)(target)); #line 57 "..\..\Window1.xaml" this.radioAllViews.Click += new System.Windows.RoutedEventHandler(this.radioPeriod_Click); #line default #line hidden #line 57 "..\..\Window1.xaml" this.radioAllViews.Unchecked += new System.Windows.RoutedEventHandler(this.radioPeriod_Unchecked); #line default #line hidden return; case 11: this.radioViewed = ((System.Windows.Controls.RadioButton)(target)); return; case 12: this.radioNotViewed = ((System.Windows.Controls.RadioButton)(target)); return; case 13: this.gbxGlobalLocal = ((System.Windows.Controls.GroupBox)(target)); return; case 14: this.radioGlobalLocal = ((System.Windows.Controls.RadioButton)(target)); #line 68 "..\..\Window1.xaml" this.radioGlobalLocal.Click += new System.Windows.RoutedEventHandler(this.radioPeriod_Click); #line default #line hidden #line 68 "..\..\Window1.xaml" this.radioGlobalLocal.Unchecked += new System.Windows.RoutedEventHandler(this.radioPeriod_Unchecked); #line default #line hidden return; case 15: this.radioGlobal = ((System.Windows.Controls.RadioButton)(target)); #line 69 "..\..\Window1.xaml" this.radioGlobal.Click += new System.Windows.RoutedEventHandler(this.radioPeriod_Click); #line default #line hidden #line 69 "..\..\Window1.xaml" this.radioGlobal.Unchecked += new System.Windows.RoutedEventHandler(this.radioPeriod_Unchecked); #line default #line hidden return; case 16: this.radioLocal = ((System.Windows.Controls.RadioButton)(target)); return; case 17: this.gbxObserver = ((System.Windows.Controls.GroupBox)(target)); return; case 18: this.cbxObserver = ((System.Windows.Controls.ComboBox)(target)); return; case 19: this.gbxResource = ((System.Windows.Controls.GroupBox)(target)); return; case 20: this.cbxResource = ((System.Windows.Controls.ComboBox)(target)); return; case 21: this.gbxKeyword = ((System.Windows.Controls.GroupBox)(target)); return; case 22: this.cbxKeyword = ((System.Windows.Controls.TextBlock)(target)); return; case 23: this.btnOk = ((System.Windows.Controls.Button)(target)); return; } this._contentLoaded = true; }