コード例 #1
0
        private void gridExpences_MouseDoubleClick(object sender, MouseButtonEventArgs e)
        {
            if (sender != null)
            {
                DataGrid grid = sender as DataGrid;
                if (grid != null && grid.SelectedItems != null && grid.SelectedItems.Count == 1)
                {
                    var expence = grid.SelectedItem as Expences;

                    ExpenceWindow expenceWindow = new ExpenceWindow(expence);
                    expenceWindow.Show();
                }
            }
        }
コード例 #2
0
        private void btnAddExpance_Click(object sender, RoutedEventArgs e)
        {
            ExpenceWindow ew = new ExpenceWindow();

            ew.Show();
        }