private void ProjectsDGDoubleClick(object sender, MouseButtonEventArgs e) { DataGridRow row = sender as DataGridRow; project_window n = new project_window(); n.opening_project_id = (int)LastSelectedProject[0]; n.Show(); }
private static void OnScaleValueChanged(DependencyObject o, DependencyPropertyChangedEventArgs e) { //log_in_form = window pavadinimas solution explorer <----------------- komentaras project_window mainWindow = o as project_window; 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 project_window mainWindow = o as project_window; 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.project_window)(target)); #line 8 "..\..\project_window.xaml" this.myMainWindow.Loaded += new System.Windows.RoutedEventHandler(this.myMainWindow_Loaded); #line default #line hidden return; case 2: this.grid = ((System.Windows.Controls.Grid)(target)); #line 9 "..\..\project_window.xaml" this.grid.SizeChanged += new System.Windows.SizeChangedEventHandler(this.Grid_SizeChanged); #line default #line hidden return; case 3: this.ApplicationScaleTransform = ((System.Windows.Media.ScaleTransform)(target)); return; case 4: this.CommentsDataGrid = ((System.Windows.Controls.DataGrid)(target)); return; case 5: this.Tasks_Dg = ((System.Windows.Controls.DataGrid)(target)); #line 44 "..\..\project_window.xaml" this.Tasks_Dg.SelectionChanged += new System.Windows.Controls.SelectionChangedEventHandler(this.Tasks_Dg_SelectionChanged); #line default #line hidden return; case 6: this.TaskComentsDataGrid = ((System.Windows.Controls.DataGrid)(target)); return; case 7: this.PavadinimasLabel = ((System.Windows.Controls.Label)(target)); return; case 8: this.StartDatelabel = ((System.Windows.Controls.Label)(target)); return; case 9: this.endDatalabel = ((System.Windows.Controls.Label)(target)); return; case 10: this.CreatorLaabel = ((System.Windows.Controls.Label)(target)); return; case 11: this.PavadinimasLabel_Copy = ((System.Windows.Controls.Label)(target)); return; case 12: this.StartDatelabel_Copy = ((System.Windows.Controls.Label)(target)); return; case 13: this.endDatalabel_Copy = ((System.Windows.Controls.Label)(target)); return; case 14: this.CreatorLaabel_Copy = ((System.Windows.Controls.Label)(target)); return; case 15: this.InvolvedDatagid = ((System.Windows.Controls.DataGrid)(target)); return; case 16: this.InvolvedLabel = ((System.Windows.Controls.Label)(target)); return; case 17: this.CommentLabel = ((System.Windows.Controls.Label)(target)); return; case 18: this.TasksSsearchBox = ((System.Windows.Controls.TextBox)(target)); #line 149 "..\..\project_window.xaml" this.TasksSsearchBox.GotFocus += new System.Windows.RoutedEventHandler(this.TasksSsearchBox_GotFocus); #line default #line hidden #line 149 "..\..\project_window.xaml" this.TasksSsearchBox.TextChanged += new System.Windows.Controls.TextChangedEventHandler(this.TasksSsearchBox_TextChanged); #line default #line hidden return; case 19: this.CommentTextBox = ((System.Windows.Controls.RichTextBox)(target)); return; case 20: this.AddCommentTb = ((System.Windows.Controls.TextBox)(target)); #line 157 "..\..\project_window.xaml" this.AddCommentTb.GotFocus += new System.Windows.RoutedEventHandler(this.AddCommentTb_GotFocus); #line default #line hidden return; } this._contentLoaded = true; }
private void Button_Click_3(object sender, RoutedEventArgs e) { project_window n = new project_window(); n.Show(); }
void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) { switch (connectionId) { case 1: this.myMainWindow = ((Projects_Manager_Medexy.project_window)(target)); #line 8 "..\..\..\windows\project_window.xaml" this.myMainWindow.Loaded += new System.Windows.RoutedEventHandler(this.myMainWindow_Loaded); #line default #line hidden return; case 2: this.grid = ((System.Windows.Controls.Grid)(target)); #line 9 "..\..\..\windows\project_window.xaml" this.grid.SizeChanged += new System.Windows.SizeChangedEventHandler(this.Grid_SizeChanged); #line default #line hidden return; case 3: this.ApplicationScaleTransform = ((System.Windows.Media.ScaleTransform)(target)); return; case 4: this.CommentsDataGrid = ((System.Windows.Controls.DataGrid)(target)); return; case 5: this.Tasks_Dg = ((System.Windows.Controls.DataGrid)(target)); #line 51 "..\..\..\windows\project_window.xaml" this.Tasks_Dg.SelectionChanged += new System.Windows.Controls.SelectionChangedEventHandler(this.Tasks_Dg_SelectionChanged); #line default #line hidden return; case 7: this.TaskComentsDataGrid = ((System.Windows.Controls.DataGrid)(target)); return; case 8: this.PavadinimasLabel = ((System.Windows.Controls.Label)(target)); return; case 9: this.StartDatelabel = ((System.Windows.Controls.Label)(target)); return; case 10: this.endDatalabel = ((System.Windows.Controls.Label)(target)); return; case 11: this.CreatorLaabel = ((System.Windows.Controls.Label)(target)); return; case 12: this.PavadinimasLabel_Copy = ((System.Windows.Controls.Label)(target)); return; case 13: this.StartDatelabel_Copy = ((System.Windows.Controls.Label)(target)); return; case 14: this.endDatalabel_Copy = ((System.Windows.Controls.Label)(target)); return; case 15: this.CreatorLaabel_Copy = ((System.Windows.Controls.Label)(target)); return; case 16: this.InvolvedDatagid = ((System.Windows.Controls.DataGrid)(target)); return; case 17: this.InvolvedLabel = ((System.Windows.Controls.Label)(target)); return; case 18: this.CommentLabel = ((System.Windows.Controls.Label)(target)); return; case 19: this.TasksSsearchBox = ((System.Windows.Controls.TextBox)(target)); #line 169 "..\..\..\windows\project_window.xaml" this.TasksSsearchBox.GotFocus += new System.Windows.RoutedEventHandler(this.TasksSsearchBox_GotFocus); #line default #line hidden #line 169 "..\..\..\windows\project_window.xaml" this.TasksSsearchBox.TextChanged += new System.Windows.Controls.TextChangedEventHandler(this.TasksSsearchBox_TextChanged); #line default #line hidden return; case 20: this.CommentTextBox = ((System.Windows.Controls.RichTextBox)(target)); return; case 21: this.AddCommentTb = ((System.Windows.Controls.TextBox)(target)); #line 177 "..\..\..\windows\project_window.xaml" this.AddCommentTb.GotFocus += new System.Windows.RoutedEventHandler(this.AddCommentTb_GotFocus); #line default #line hidden #line 177 "..\..\..\windows\project_window.xaml" this.AddCommentTb.DragOver += new System.Windows.DragEventHandler(this.AddCommentTb_DragOver); #line default #line hidden #line 177 "..\..\..\windows\project_window.xaml" this.AddCommentTb.Drop += new System.Windows.DragEventHandler(this.AddCommentTb_Drop); #line default #line hidden #line 177 "..\..\..\windows\project_window.xaml" this.AddCommentTb.DragLeave += new System.Windows.DragEventHandler(this.AddCommentTb_DragLeave); #line default #line hidden #line 177 "..\..\..\windows\project_window.xaml" this.AddCommentTb.PreviewDragOver += new System.Windows.DragEventHandler(this.AddCommentTb_PreviewDragOver); #line default #line hidden return; case 22: this.AddTaskCommentBtn = ((System.Windows.Controls.Button)(target)); #line 178 "..\..\..\windows\project_window.xaml" this.AddTaskCommentBtn.Click += new System.Windows.RoutedEventHandler(this.AddTaskCommentBtn_Click); #line default #line hidden return; case 23: this.AddMoreTasksBtn = ((System.Windows.Controls.Button)(target)); #line 179 "..\..\..\windows\project_window.xaml" this.AddMoreTasksBtn.Click += new System.Windows.RoutedEventHandler(this.AddMoreTasksBtn_Click); #line default #line hidden return; case 24: this.Close_btn = ((System.Windows.Controls.Button)(target)); #line 180 "..\..\..\windows\project_window.xaml" this.Close_btn.Click += new System.Windows.RoutedEventHandler(this.Close_btn_Click); #line default #line hidden return; case 25: this.AddProjectCommentTb = ((System.Windows.Controls.TextBox)(target)); #line 181 "..\..\..\windows\project_window.xaml" this.AddProjectCommentTb.GotFocus += new System.Windows.RoutedEventHandler(this.AddProjectCommentTb_OnGotFocus); #line default #line hidden #line 181 "..\..\..\windows\project_window.xaml" this.AddProjectCommentTb.Drop += new System.Windows.DragEventHandler(this.AddProjectCommentTb_Drop); #line default #line hidden #line 181 "..\..\..\windows\project_window.xaml" this.AddProjectCommentTb.DragOver += new System.Windows.DragEventHandler(this.AddProjectCommentTb_DragOver); #line default #line hidden #line 181 "..\..\..\windows\project_window.xaml" this.AddProjectCommentTb.DragLeave += new System.Windows.DragEventHandler(this.AddProjectCommentTb_DragLeave); #line default #line hidden #line 181 "..\..\..\windows\project_window.xaml" this.AddProjectCommentTb.PreviewDragOver += new System.Windows.DragEventHandler(this.AddProjectCommentTb_PreviewDragOver); #line default #line hidden return; case 26: this.AddProjectCommentBtn = ((System.Windows.Controls.Button)(target)); #line 182 "..\..\..\windows\project_window.xaml" this.AddProjectCommentBtn.Click += new System.Windows.RoutedEventHandler(this.AddProjectCommentBtnClick); #line default #line hidden return; case 27: this.ProjectFilesDg = ((System.Windows.Controls.DataGrid)(target)); return; case 29: this.TaskFilesDg = ((System.Windows.Controls.DataGrid)(target)); return; } this._contentLoaded = true; }