private void newtask_window_create() { newtask = new NewTask(bolayer); newtask.close_button.Click += notify_close_button_Click; newtask.sendbutton.Click += sendbutton_Click; BigStackpanel.Children.Add(newtask); }
private void Notify_assigntask_Click(object sender, EventArgs e) { before_side_window(0); newtask = new NewTask(bolayer); newtask.close_button.Click += windo_by_icon_close_button_Click; newtask.sendbutton.Click += sendbutton_Click; newtask.bar_border.MouseDown += bar_border_MouseDown; BigStackpanel.Children.Add(newtask); this.WindowState = WindowState.Normal; this.ShowInTaskbar = true; }