コード例 #1
0
        private void btnProjectCost_Click(object sender, RoutedEventArgs e)
        {
            //Restrict addProjectCost to this user and project
            App.Current.Properties["thisProjectCost"] = App.Current.Properties["thisProject"];
            App.Current.Properties["myProject"] = true;
            ProjectCostsWindow win = new ProjectCostsWindow();
            win.ShowDialog();
            UpdateWindow();
            App.Current.Properties["thisProjectCost"] = null;
            App.Current.Properties["myProject"] = false;
            

        }
コード例 #2
0
ファイル: ProjectWindow.xaml.cs プロジェクト: hordure/WPF
 private void menu_ProjectCost_Click(object sender, RoutedEventArgs e)
 {
     //Select costs related to this/selected project in projectCosts window
     App.Current.Properties["thisProjectCost"] = projectDataGrid.SelectedItem;
     ProjectCostsWindow win = new ProjectCostsWindow();
     win.ShowDialog();
     App.Current.Properties["thisProjectCost"] = null;
     UpdateWindow();
 }
コード例 #3
0
ファイル: UserWindow.xaml.cs プロジェクト: hordure/WPF
 private void menu_projectCosts_Click(object sender, RoutedEventArgs e)
 {
     ProjectCostsWindow win = new ProjectCostsWindow();
     win.ShowDialog();
     UpdateWindow(sender, e);
 }