示例#1
0
        private void BackButton_Click(object sender, RoutedEventArgs e)
        {
            ProjectManagerGraphic graphic = new ProjectManagerGraphic(project, user);

            Close();
            graphic.Show();
        }
        /// <summary>
        /// метод для элемента ListBox, отображающего проекты пользователя
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void ListBoxProjects_MouseDoubleClick(object sender, MouseButtonEventArgs e)
        {
            if (listBoxProjects.SelectedItem != null)
            {
                Project project = (Project)listBoxProjects.SelectedItem;
                ProjectManagerGraphic graphic = new ProjectManagerGraphic(project, user);

                Close();
                graphic.Show();
            }
            else
            {
                MessageBox.Show("You need to select project!");
            }
        }