Beispiel #1
0
        private void btnBack_Click(object sender, RoutedEventArgs e)
        {
            this.Hide();
            ProjectMainWindow pmw = new ProjectMainWindow(open, online);

            pmw.Show();
            this.Close();
        }
        private void lbxProjectList_SelectionChanged(object sender, SelectionChangedEventArgs e)
        {
            string projectInfo = lbxProjectList.SelectedItem.ToString();

            this.Hide();
            ProjectMainWindow pmw = new ProjectMainWindow(pc.FindProjectListBox(projectInfo), online);

            pmw.Show();
            this.Close();
        }
        private void btnNewProject_Click(object sender, RoutedEventArgs e)
        {
            ProjectController pc = new ProjectController();

            pc.NewProject(tbxTitle.Text, tbxDescription.Text, this.admin);
            MessageBox.Show("New Project Created!\n" + tbxTitle.Text);
            this.Hide();
            ProjectMainWindow pmw = new ProjectMainWindow(Project.ProjectList[Project.ProjectList.Count - 1], admin);

            pmw.Show();
            this.Close();
        }