예제 #1
0
        void closeWindow_Click(object sender, RoutedEventArgs e)
        {
            if(editWin!=null)
                editWin.Close();
            editWin = null;

            if (New_ClassWindow != null)
                New_ClassWindow.Close();
            New_ClassWindow = null;

            if (deleteWindow != null)
                deleteWindow = null;
            ShowClasses();//Refreshes the classes
        }
예제 #2
0
        //Del Button
        private void del_btn_Click(object sender, RoutedEventArgs e)
        {
            string nameToDelete = ((Button)sender).Tag.ToString();

            deleteWindow = new DeleteForm(nameToDelete,SendingFrom);
            deleteWindow.closeWindow.Click+=new RoutedEventHandler(closeWindow_Click);
            deleteWindow.UpdateList.Click+=new RoutedEventHandler(UpdateList_Click);
            deleteWindow.Owner = Window.GetWindow(this);
            deleteWindow.ShowDialog();
        }