Exemplo n.º 1
0
        private void MainView_Load(object sender, EventArgs e)
        {
            Text                  = string.Format("{0} v{1}", Application.ProductName, Application.ProductVersion);
            _dateFrom.Value       = new DateTime(DateTime.Now.Year, DateTime.Now.Month, 1);
            _dateFrom.Checked     = false;
            _viewModel.FilterFrom = null;

            var profileSelectView = new ProfileSelectView();

            if (profileSelectView.ShowDialog() == DialogResult.OK)
            {
                _viewModel.Load(profileSelectView.ViewModel.Profile,
                                profileSelectView.ViewModel.ProfileDatabasePath);
            }
        }
Exemplo n.º 2
0
 private void MainView_Load(object sender, EventArgs e)
 {
     Text = string.Format("{0} v{1}", Application.ProductName, Application.ProductVersion);
     _dateFrom.Value = new DateTime(DateTime.Now.Year, DateTime.Now.Month, 1);
     _dateFrom.Checked = false;
     _viewModel.FilterFrom = null;
     
     var profileSelectView = new ProfileSelectView();
     if (profileSelectView.ShowDialog() == DialogResult.OK)
     {
         _viewModel.Load(profileSelectView.ViewModel.Profile, 
             profileSelectView.ViewModel.ProfileDatabasePath);
     }
 }