示例#1
0
        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;
        }
示例#2
0
 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) { };
 }
示例#3
0
        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);
            }
        }
示例#4
0
        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);
            }
        }