private void btn_futrue_addmoney_Click(object sender, EventArgs e) { Form_Financial_Futrue f = new Form_Financial_Futrue(this); f.Addmoney(); pnl_future_addmoney.Visible = false; }
// 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(); } }
private void 목록삭제ToolStripMenuItem_Click(object sender, EventArgs e) { ListView.SelectedListViewItemCollection lvw_select = lvw_Futrue_left.SelectedItems; if (lvw_select[0].Text != null) { Form_Financial_Futrue f = new Form_Financial_Futrue(this); f.List_Delete(); } }
private void 목록추가ToolStripMenuItem_Click(object sender, EventArgs e) { Form_Financial_Futrue form_future = new Form_Financial_Futrue(this); form_future.ShowDialog(); }
private void listView1_SelectedIndexChanged(object sender, EventArgs e) { Form_Financial_Futrue f = new Form_Financial_Futrue(this); f.Select_Listview(); }
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); } } }