Пример #1
0
        private void btnProjectHours_Click(object sender, RoutedEventArgs e)
        {
            //Restrict addProjectHours to this user and project
            App.Current.Properties["thisProjectHours"] = App.Current.Properties["thisProject"];
            App.Current.Properties["myProject"] = true;
            ProjectHoursWindow win = new ProjectHoursWindow();
            win.ShowDialog();
            UpdateWindow();
            App.Current.Properties["thisProjectHours"] = null;
            App.Current.Properties["myProject"] = false;
            

        }
Пример #2
0
        private void menu_ProjectHours_Click(object sender, RoutedEventArgs e)
        {
            //View hours related to this/selected project in projectHours window
            App.Current.Properties["thisProjectHours"] = projectDataGrid.SelectedItem;
            ProjectHoursWindow win = new ProjectHoursWindow();
            win.ShowDialog();
            App.Current.Properties["thisProjectHours"] = null;
            UpdateWindow();

        }
Пример #3
0
 private void menu_projectHours_Click(object sender, RoutedEventArgs e)
 {
     ProjectHoursWindow win = new ProjectHoursWindow();
     win.ShowDialog();
     UpdateWindow(sender, e);
 }