private void AddMoreTasksBtn_Click(object sender, RoutedEventArgs e) { AddTasksToProject a = new AddTasksToProject(); a.ProjectId = opening_project_id; a.Show(); }
private static void OnScaleValueChanged(DependencyObject o, DependencyPropertyChangedEventArgs e) { //log_in_form = window pavadinimas solution explorer <----------------- komentaras AddTasksToProject mainWindow = o as AddTasksToProject; if (mainWindow != null) { mainWindow.OnScaleValueChanged((double)e.OldValue, (double)e.NewValue); } }
private static object OnCoerceScaleValue(DependencyObject o, object value) { //log_in_form = window pavadinimas solution explorer <----------------- komentaras AddTasksToProject mainWindow = o as AddTasksToProject; if (mainWindow != null) { return(mainWindow.OnCoerceScaleValue((double)value)); } else { return(value); } }
void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) { switch (connectionId) { case 1: this.myMainWindow = ((Projects_Manager_Medexy.AddTasksToProject)(target)); #line 8 "..\..\..\windows\AddTasksToProject.xaml" this.myMainWindow.Loaded += new System.Windows.RoutedEventHandler(this.Window_Loaded); #line default #line hidden return; case 2: #line 9 "..\..\..\windows\AddTasksToProject.xaml" ((System.Windows.Controls.Grid)(target)).SizeChanged += new System.Windows.SizeChangedEventHandler(this.Grid_SizeChanged_1); #line default #line hidden return; case 3: this.TasksDatagrid = ((System.Windows.Controls.DataGrid)(target)); #line 10 "..\..\..\windows\AddTasksToProject.xaml" this.TasksDatagrid.SelectionChanged += new System.Windows.Controls.SelectionChangedEventHandler(this.TasksDatagrid_SelectionChanged); #line default #line hidden return; case 4: this.TaskStartDatePicker = ((System.Windows.Controls.DatePicker)(target)); #line 71 "..\..\..\windows\AddTasksToProject.xaml" this.TaskStartDatePicker.SelectedDateChanged += new System.EventHandler <System.Windows.Controls.SelectionChangedEventArgs>(this.TaskStartDatePicker_SelectedDateChanged); #line default #line hidden return; case 5: this.TaskEndDatePicker = ((System.Windows.Controls.DatePicker)(target)); #line 73 "..\..\..\windows\AddTasksToProject.xaml" this.TaskEndDatePicker.SelectedDateChanged += new System.EventHandler <System.Windows.Controls.SelectionChangedEventArgs>(this.TaskEndDatePicker_SelectedDateChanged); #line default #line hidden return; case 6: this.TaskPavTb = ((System.Windows.Controls.TextBox)(target)); #line 74 "..\..\..\windows\AddTasksToProject.xaml" this.TaskPavTb.GotFocus += new System.Windows.RoutedEventHandler(this.TaskPavTb_GotFocus); #line default #line hidden return; case 7: this.TaskAtsakingasDg = ((System.Windows.Controls.DataGrid)(target)); #line 76 "..\..\..\windows\AddTasksToProject.xaml" this.TaskAtsakingasDg.SelectionChanged += new System.Windows.Controls.SelectionChangedEventHandler(this.TaskAtsakingasDg_SelectionChanged); #line default #line hidden return; case 8: this.TaskKomentaras = ((System.Windows.Controls.RichTextBox)(target)); #line 89 "..\..\..\windows\AddTasksToProject.xaml" this.TaskKomentaras.GotFocus += new System.Windows.RoutedEventHandler(this.TaskKomentaras_GotFocus); #line default #line hidden return; case 9: this.flow1 = ((System.Windows.Documents.FlowDocument)(target)); return; case 10: this.Paragraph1 = ((System.Windows.Documents.Paragraph)(target)); return; case 11: this.Run1 = ((System.Windows.Documents.Run)(target)); return; case 12: this.AddTasksBtn = ((System.Windows.Controls.Button)(target)); #line 97 "..\..\..\windows\AddTasksToProject.xaml" this.AddTasksBtn.Click += new System.Windows.RoutedEventHandler(this.AddTasksBtnClick); #line default #line hidden return; case 13: this.TaskAtsakingasSearchTb = ((System.Windows.Controls.TextBox)(target)); #line 98 "..\..\..\windows\AddTasksToProject.xaml" this.TaskAtsakingasSearchTb.GotFocus += new System.Windows.RoutedEventHandler(this.TaskAtsakingasSearchTb_GotFocus); #line default #line hidden #line 98 "..\..\..\windows\AddTasksToProject.xaml" this.TaskAtsakingasSearchTb.TextChanged += new System.Windows.Controls.TextChangedEventHandler(this.TaskAtsakingasSearchTb_TextChanged); #line default #line hidden return; case 14: this.ClearTaskAtsakingasSearchTbBtn = ((System.Windows.Controls.Button)(target)); #line 99 "..\..\..\windows\AddTasksToProject.xaml" this.ClearTaskAtsakingasSearchTbBtn.Click += new System.Windows.RoutedEventHandler(this.ClearTaskAtsakingasSearchTbBtnClick); #line default #line hidden return; case 15: this.TaskAddedUsersDg = ((System.Windows.Controls.DataGrid)(target)); return; case 17: this.TaskUsersDg = ((System.Windows.Controls.DataGrid)(target)); return; case 19: this.TaskInvolvedSearchTb = ((System.Windows.Controls.TextBox)(target)); #line 145 "..\..\..\windows\AddTasksToProject.xaml" this.TaskInvolvedSearchTb.GotFocus += new System.Windows.RoutedEventHandler(this.TaskInvolvedSearchTb_GotFocus); #line default #line hidden #line 145 "..\..\..\windows\AddTasksToProject.xaml" this.TaskInvolvedSearchTb.TextChanged += new System.Windows.Controls.TextChangedEventHandler(this.TaskInvolvedSearchTb_TextChanged); #line default #line hidden return; case 20: this.ClearTaskInvolvedSearchTb = ((System.Windows.Controls.Button)(target)); #line 146 "..\..\..\windows\AddTasksToProject.xaml" this.ClearTaskInvolvedSearchTb.Click += new System.Windows.RoutedEventHandler(this.ClearTaskInvolvedSearchTbBtnClick); #line default #line hidden return; case 21: this.RemoveTaskUsersBtn = ((System.Windows.Controls.Button)(target)); #line 147 "..\..\..\windows\AddTasksToProject.xaml" this.RemoveTaskUsersBtn.Click += new System.Windows.RoutedEventHandler(this.RemoveTaskUsersBtnClick); #line default #line hidden return; case 22: this.AddTaksUsersBtn = ((System.Windows.Controls.Button)(target)); #line 148 "..\..\..\windows\AddTasksToProject.xaml" this.AddTaksUsersBtn.Click += new System.Windows.RoutedEventHandler(this.AddTaskUsersBtnClick); #line default #line hidden return; case 23: this.RemoveTasksBtn = ((System.Windows.Controls.Button)(target)); #line 150 "..\..\..\windows\AddTasksToProject.xaml" this.RemoveTasksBtn.Click += new System.Windows.RoutedEventHandler(this.RemoveTasksBtnClick); #line default #line hidden return; case 24: this.SaveBtn = ((System.Windows.Controls.Button)(target)); #line 151 "..\..\..\windows\AddTasksToProject.xaml" this.SaveBtn.Click += new System.Windows.RoutedEventHandler(this.SaveBtn_OnClick); #line default #line hidden return; case 25: this.CloseBtn = ((System.Windows.Controls.Button)(target)); #line 152 "..\..\..\windows\AddTasksToProject.xaml" this.CloseBtn.Click += new System.Windows.RoutedEventHandler(this.CloseBtn_OnClick); #line default #line hidden return; } this._contentLoaded = true; }