private void MenuDockingTab_SelectedIndexChanging(object sender, C1.Win.C1Command.SelectedIndexChangingEventArgs e) { string oldtab = MenuDockingTab.SelectedTab.Name; string newtab = MenuDockingTab.TabPages[e.NewIndex].Name; if (newtab == "ReportTab") { OuvrageList.SelectionMode = C1.Win.C1List.SelectionModeEnum.CheckBox; mod_global.Disable_Main_Tabs(); OuvrageList.ClearSelected(); mod_accueil.FORME_OUVRAGE = String.Empty; mod_accueil.OUVRAGE = String.Empty; mod_accueil.TYPE_OUVRAGE = String.Empty; } if (oldtab == "ReportTab") { OuvrageList.SelectionMode = C1.Win.C1List.SelectionModeEnum.One; mod_global.Disable_Main_Tabs(); OuvrageList.ClearSelected(); mod_accueil.FORME_OUVRAGE = String.Empty; mod_accueil.OUVRAGE = String.Empty; mod_accueil.TYPE_OUVRAGE = String.Empty; } }
private void c1DockingTab1_SelectedIndexChanging(object sender, C1.Win.C1Command.SelectedIndexChangingEventArgs e) { if (e.NewIndex != -1) { int _in = e.NewIndex; string[] _assembly = ((C1.Win.C1Command.C1DockingTab)(sender)).TabPages[_in].Tag.ToString().Split(';'); //Buscar el control en el tab object[] obj = null; int _idx; _idx = _in; obj = this.c1DockingTab1.Controls.Find(_assembly[0], true); UserControl x = null; for (int i = 0; i <= obj.Length - 1; i++) { if (obj[i].GetType().Name == _assembly[0]) { x = (UserControl)obj[i]; } } AppSettings.ControlChild = x; } }
private void Tab1_SelectedIndexChanging(object sender, C1.Win.C1Command.SelectedIndexChangingEventArgs e) { if (b_Agregando == true) { return; } if (n_QueHace != 3) { return; } if (DgLista.RowCount == 0) { MessageBox.Show("¡ No hay registros que mostrar!", "", MessageBoxButtons.OK, MessageBoxIcon.Information, MessageBoxDefaultButton.Button1); e.Cancel = true; Blanquea(); FgDato.Rows.Count = 2; return; } if (e.NewIndex == 1) { int intIdRegistro = Convert.ToInt32(DgLista.Columns[0].CellValue(DgLista.Row).ToString()); if (n_QueHace != 1) { b_Agregando = true; VerRegistro(intIdRegistro); b_Agregando = false; } } }
private void Tab1_SelectedIndexChanging(object sender, C1.Win.C1Command.SelectedIndexChangingEventArgs e) { //if (n_QueHace != 3) { return; } //if (e.NewIndex == 1) //{ // int intIdRegistro = Convert.ToInt32(DgLista.Columns["n_id"].CellValue(DgLista.Row).ToString()); // if (n_QueHace != 1) // { // VerRegistro(intIdRegistro); // } //} }
private void Tab1_SelectedIndexChanging(object sender, C1.Win.C1Command.SelectedIndexChangingEventArgs e) { if (e.NewIndex == 1) { if (n_QueHace != 1) { int intIdRegistro = Convert.ToInt32(DgLista.Columns[0].CellValue(DgLista.Row).ToString()); booAgregando = true; VerRegistro(intIdRegistro); booAgregando = false; } } }
private void Tab1_SelectedIndexChanging(object sender, C1.Win.C1Command.SelectedIndexChangingEventArgs e) { if (n_QueHace != 3) { return; } if (e.NewIndex == 1) { int n_IdEmp = Convert.ToInt32(DgLista.Columns[1].CellValue(DgLista.Row).ToString()); int n_IdTipExi = Convert.ToInt32(DgLista.Columns[0].CellValue(DgLista.Row).ToString()); if (n_QueHace != 1) { VerRegistro(n_IdEmp, n_IdTipExi); } } }
private void MainDockingTab_SelectedIndexChanging(object sender, C1.Win.C1Command.SelectedIndexChangingEventArgs e) { //si on quitte l'onglet identification if (MainDockingTab.SelectedTab.Name == "IdentificationTab") { //on vérifie avant si le flag de sauvegarde est mis et si la sauvegarde doit être proposée if (mod_identification.SaveIDFlag) { DialogResult rep = MessageBox.Show("Des champs de la fenêtre courante ont été modifiés, voulez vous enregistrer ?", "Enregistrement des modifications", MessageBoxButtons.YesNo, MessageBoxIcon.Question); if (rep == DialogResult.Yes) { mod_save.Save_Identification_Panel(Identification_Flp); //mise a jour de la couleur du groupe courant mod_identification.Check_Fields_Status(IdentificationTopicBar.FindPage(IdFormLabel.Text)); } else { mod_identification.SaveIDFlag = false; } } } else if (MainDockingTab.SelectedTab.Name == "InspectionTab") { //on vérifie avant si le flag de sauvegarde est mis et si la sauvegarde doit être proposée if (mod_inspection.SaveIDFlag) { DialogResult rep = MessageBox.Show("Des champs de la fenêtre courante ont été modifiés, voulez vous enregistrer ?", "Enregistrement des modifications", MessageBoxButtons.YesNo, MessageBoxIcon.Question); if (rep == DialogResult.Yes) { mod_save.Save_Inspection_Panel(Inspection_Flp); //mise a jour de la couleur du groupe courant mod_inspection.Check_Fields_Status(InspectionTopicBar.FindPage(InspectFormLabel.Text)); } else { mod_inspection.SaveIDFlag = false; } } } }
private void Tab1_SelectedIndexChanging(object sender, C1.Win.C1Command.SelectedIndexChangingEventArgs e) { if (n_QueHace != 3) { return; } if (dtRegistros.Rows.Count == 0) { return; } if (e.NewIndex == 1) { int intIdRegistro = Convert.ToInt32(DgLista.Columns[0].CellValue(DgLista.Row).ToString()); if (n_QueHace != 1) { VerRegistro(intIdRegistro); } } }