예제 #1
0
 private void AccountManager_FormClosed(object sender, FormClosedEventArgs e)
 {
     if (Config.Username != "") // dang nhap thanh cong
     {
         SpendUI spendUI = new SpendUI();
         showControl(spendUI);
     }
     else
     {
         Application.Exit();
     }
 }
예제 #2
0
        public MainProgram()
        {
            InitializeComponent();

            if (Config.Username == "")
            {
                Account accountManager = new Account();
                accountManager.FormClosed += AccountManager_FormClosed;
                accountManager.ShowDialog();
            }
            else
            {
                SpendUI spendUI = new SpendUI();
                showControl(spendUI);
            }
        }
예제 #3
0
        private void btnSpend_Click(object sender, EventArgs e)
        {
            SpendUI spendUI = new SpendUI();

            showControl(spendUI);
        }