private void Button_Forward_All_Click(object sender, EventArgs e) { States state = States.CONSULT; Tab_Interface selected_tab = (Tab_Interface)tc_main.TabPages[tc_main.SelectedIndex]; selected_tab.uc_tab.SetReadOnly(state); selected_tab.uc_tab.Go_End(); selected_tab.uc_tab.State = state; }
private void tc_main_SelectedIndexChanged(object sender, EventArgs e) { try { Tab_Interface selected_tab = (Tab_Interface)tc_main.TabPages[tc_main.SelectedIndex]; set_ts_buttons(selected_tab.uc_tab.State); selected_tab.uc_tab.Fill(); } catch (Exception exc) { }; }
private void Button_Undo_Click(object sender, EventArgs e) { States state = States.CONSULT; Tab_Interface selected_tab = (Tab_Interface)tc_main.TabPages[tc_main.SelectedIndex]; if (selected_tab.uc_tab.Undo()) { selected_tab.uc_tab.SetReadOnly(state); selected_tab.uc_tab.State = state; set_ts_buttons(state); } }
private void Button_Add_Click(object sender, EventArgs e) { States state = States.ADD; Tab_Interface selected_tab = (Tab_Interface)tc_main.TabPages[tc_main.SelectedIndex]; if (selected_tab.uc_tab.Add()) { if (tc_main.SelectedTab.Name != "Tab_Chambres") { selected_tab.uc_tab.SetReadOnly(state); } selected_tab.uc_tab.State = state; set_ts_buttons(state); } }