public void Show()
        {
            IBalanceSheetViewModel viewModel = m_balanceSheetViewModelFactory.Create();
            var window = new BalanceSheetWindow(viewModel);

            window.Show();
        }
Esempio n. 2
0
 // Create Balance Sheet
 private void BalSheetButton_Click(object sender, System.EventArgs e)
 {
     if (MonthComboBox.SelectedIndex == -1 || YearTextBox.Text == string.Empty)
     {
         MessageBox.Show("Input Month & Year.", "Invalid Option.", MessageBoxButtons.OK, MessageBoxIcon.Error);
     }
     else
     {
         BalanceSheetWindow bsw = new BalanceSheetWindow(MonthComboBox.SelectedItem.ToString(), YearTextBox.Text);
         bsw.Show();
     }
 }