Exemplo n.º 1
0
        //新建操作
        private void AddFile_Click(object sender, RoutedEventArgs e)
        {
            AddFile addFile = new AddFile();

            addFile.Title = "新建项目";
            addFile.ShowDialog();
        }
Exemplo n.º 2
0
        private void build_Click(object sender, RoutedEventArgs e)
        {
            this.Hide();
            ProDAL  dal     = new ProDAL();
            int     id1     = dal.getNowPro();
            AddFile addFile = new AddFile();

            addFile.Title = "新建项目";
            addFile.ShowDialog();
            int id2 = dal.getNowPro();

            if (id1 != id2)
            {
                MainWindow mainWindow = new MainWindow();
                mainWindow.ShowDialog();
                this.Close();
            }
            this.Show();
        }