void Tasks_DgDoubleClick(object sender, MouseButtonEventArgs e)
        {
            DataGridRow row = sender as DataGridRow;
            task_window t   = new task_window();

            t.TaskID    = (int)tasksLastSelected[0];
            t.ProjectID = (int)tasksLastSelected[4];
            t.Show();
        }
        private static void OnScaleValueChanged(DependencyObject o, DependencyPropertyChangedEventArgs e)
        {
            //log_in_form = window pavadinimas solution explorer        <----------------- komentaras
            task_window mainWindow = o as task_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
            task_window mainWindow = o as task_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.task_window)(target));

            #line 8 "..\..\..\windows\task_window.xaml"
                this.myMainWindow.Loaded += new System.Windows.RoutedEventHandler(this.myMainWindow_Loaded);

            #line default
            #line hidden
                return;

            case 2:

            #line 9 "..\..\..\windows\task_window.xaml"
                ((System.Windows.Controls.Grid)(target)).SizeChanged += new System.Windows.SizeChangedEventHandler(this.Grid_SizeChanged_1);

            #line default
            #line hidden
                return;

            case 3:
                this.PavadinimasLabel = ((System.Windows.Controls.Label)(target));
                return;

            case 4:
                this.StartDatelabel = ((System.Windows.Controls.Label)(target));
                return;

            case 5:
                this.endDatalabel = ((System.Windows.Controls.Label)(target));
                return;

            case 6:
                this.CreatorLaabel = ((System.Windows.Controls.Label)(target));
                return;

            case 7:
                this.PavadinimasLabel_Copy = ((System.Windows.Controls.Label)(target));
                return;

            case 8:
                this.StartDatelabel_Copy = ((System.Windows.Controls.Label)(target));
                return;

            case 9:
                this.endDatalabel_Copy = ((System.Windows.Controls.Label)(target));
                return;

            case 10:
                this.CreatorLaabel_Copy = ((System.Windows.Controls.Label)(target));
                return;

            case 11:
                this.InvolvedLabel = ((System.Windows.Controls.Label)(target));
                return;

            case 12:
                this.CommentLabel = ((System.Windows.Controls.Label)(target));
                return;

            case 13:
                this.CommentTextBox = ((System.Windows.Controls.RichTextBox)(target));
                return;

            case 14:
                this.TaskComentsDataGrid = ((System.Windows.Controls.DataGrid)(target));

            #line 28 "..\..\..\windows\task_window.xaml"
                this.TaskComentsDataGrid.Drop += new System.Windows.DragEventHandler(this.TaskComentsDataGrid_Drop);

            #line default
            #line hidden

            #line 28 "..\..\..\windows\task_window.xaml"
                this.TaskComentsDataGrid.DragEnter += new System.Windows.DragEventHandler(this.TaskComentsDataGrid_DragEnter);

            #line default
            #line hidden
                return;

            case 15:
                this.AddCommentTb = ((System.Windows.Controls.TextBox)(target));

            #line 41 "..\..\..\windows\task_window.xaml"
                this.AddCommentTb.GotFocus += new System.Windows.RoutedEventHandler(this.AddCommentTb_GotFocus);

            #line default
            #line hidden
                return;

            case 16:
                this.AddTaskCommentBtn = ((System.Windows.Controls.Button)(target));

            #line 42 "..\..\..\windows\task_window.xaml"
                this.AddTaskCommentBtn.Click += new System.Windows.RoutedEventHandler(this.AddTaskCommentBtn_Click);

            #line default
            #line hidden
                return;

            case 17:
                this.CompletedBtn = ((System.Windows.Controls.Button)(target));

            #line 43 "..\..\..\windows\task_window.xaml"
                this.CompletedBtn.Click += new System.Windows.RoutedEventHandler(this.CompletedBtn_Click);

            #line default
            #line hidden
                return;

            case 18:
                this.InvolvedTextBox = ((System.Windows.Controls.RichTextBox)(target));
                return;

            case 19:
                this.closeBtn = ((System.Windows.Controls.Button)(target));

            #line 53 "..\..\..\windows\task_window.xaml"
                this.closeBtn.Click += new System.Windows.RoutedEventHandler(this.closeBtn_Click);

            #line default
            #line hidden
                return;

            case 20:
                this.TaskFilesDg = ((System.Windows.Controls.DataGrid)(target));

            #line 54 "..\..\..\windows\task_window.xaml"
                this.TaskFilesDg.Drop += new System.Windows.DragEventHandler(this.TaskComentsDataGrid_Drop);

            #line default
            #line hidden

            #line 54 "..\..\..\windows\task_window.xaml"
                this.TaskFilesDg.DragEnter += new System.Windows.DragEventHandler(this.TaskComentsDataGrid_DragEnter);

            #line default
            #line hidden
                return;
            }
            this._contentLoaded = true;
        }