Example #1
0
        // Financil Form에 있는 8개의 탭중 하나가 눌렸을 때
        private void tabctl_menu_SelectedIndexChanged(object sender, EventArgs e)
        {
            TabControl tab = (TabControl)sender;

            str_list.Clear();

            if (tab.SelectedTab == tabPage2) // TabPage2이 눌렀을 때
            {
                Property_ListSetting();
                Proper_Count();
            }
            else if (tab.SelectedTab == tabPage3) // TabPage3이 눌렀을 때
            {
                string path = Application.StartupPath + "\\통장관리";

                lbl_accountname.Text = "- " + tabp_deposit.Text + " 계좌 리스트";
                TabPage3_ListView_Setting(3, path, "\\예금.txt");
            }
            else if (tab.SelectedTab == tabPage4)
            {
            }
            else if (tab.SelectedTab == tabPage7)
            {
                Class_Kookmin class_k = new Class_Kookmin(this);
                class_k.Control_Setting();
            }
            else if (tab.SelectedTab == tabPage8)
            {
                Form_Financial_Futrue f = new Form_Financial_Futrue(this);
                f.LeftView_Setting();
            }
        }
Example #2
0
        private void btn_pension_add_Click(object sender, EventArgs e)
        {
            {
                Class_Kookmin c1 = new Class_Kookmin(this);
                c1.File_Make();

                dtp_pension_birth.Visible       = false;
                dtp_pension_first.Visible       = false;
                dtp_pension_last.Visible        = false;
                dtp_pension_salaryfirst.Visible = false;
                dtp_pension_salarylast.Visible  = false;

                txt_pension_salary.Visible = false;

                cbo_pension_expect.Visible = false;

                btn_pension_add.Visible    = false;
                btn_pension_cancel.Visible = false;

                txt_pension_salary.Clear();

                c1.Control_Setting();
            }
        }
Example #3
0
        private void btn_account_MouseClick(object sender, MouseEventArgs e)
        {
            {
                Control ctl   = (Control)sender;
                TabPage tp    = null;
                bool    exist = false;

                switch (ctl.Text)
                {
                case "재산 관리":
                    tp = tabPage2;
                    tabctl_menu.SelectedTab = tabPage2;

                    Property_ListSetting();
                    Proper_Count();
                    break;

                case "통장 관리":
                    tp = tabPage3;
                    tabctl_menu.SelectedTab = tabPage3;

                    string path = Application.StartupPath + "\\통장관리";

                    lbl_accountname.Text = "- " + tabp_deposit.Text + " 계좌 리스트";
                    TabPage3_ListView_Setting(3, path, "\\예금.txt");
                    break;

                case "월급 관리":
                    tp = tabPage4;
                    tabctl_menu.SelectedTab = tabPage4;

                    Class_Salary_Control c1 = new Class_Salary_Control(this);

                    c1.Label_Setting();
                    c1.IncomeList_Setting();
                    break;

                case "국민연금":
                    tp = tabPage7;
                    tabctl_menu.SelectedTab = tabPage7;

                    Class_Kookmin class_k = new Class_Kookmin(this);
                    class_k.Control_Setting();
                    break;

                case "미래 자금":
                    tp = tabPage8;
                    tabctl_menu.SelectedTab = tabPage8;

                    Form_Financial_Futrue form = new Form_Financial_Futrue(this);
                    form.LeftView_Setting();

                    break;

                case "가계부":
                    tp = tabPage9;
                    tabctl_menu.SelectedTab = tabPage9;
                    DateTime_set();
                    CheckBox_Setting();
                    break;
                }
                string[] s   = tp.Name.Split('e');
                int      num = int.Parse(s[1]);

                for (int j = 0; j < num_list.Count; j++)
                {
                    if (num == num_list[j])
                    {
                        exist = true;
                    }
                }

                if (!exist)
                {
                    tabctl_menu.TabPages.Add(tp);
                    tabctl_menu.SelectedIndex = tabctl_menu.TabCount - 1; // 가장 최근에 생긴 탭을 선택
                    tabctl_menu.SelectedTab   = tp;
                    num_list.Add(num);
                }
            }
        }