private void graba_Click(object sender, EventArgs e) { prt prt = new prt(); if (Interaction.MsgBox((object)"Seguro de Grabar las Cajas? ", MsgBoxStyle.YesNo, (object)"Actualizacion de Datos !!!") != MsgBoxResult.Yes) { return; } this.graba_datos(); prt.imprime_cajas_s(ref this.inicial, this.final, this.obj.seccion, this.obj.numero, this.obj.constr); this.Close(); }
private void impre_Click(object sender, EventArgs e) { prt prt1 = new prt(); int num = checked (this.fg.Rows.Count - 1); int index1 = 1; while (index1 <= num) { if (Microsoft.VisualBasic.CompilerServices.Operators.ConditionalCompareObjectEqual(this.fg[index1, 8], (object)true, false)) { prt prt2 = prt1; C1.Win.C1FlexGrid.C1FlexGrid fg; int index2; string str = Conversions.ToString((fg = this.fg)[index2 = index1, 1]); ref string local = ref str; string final = Conversions.ToString(this.fg[index1, 1]); string seccion = this.obj.seccion; string numero = this.obj.numero; string constr = this.obj.constr; prt2.imprime_cajas_s(ref local, final, seccion, numero, constr); fg[index2, 1] = (object)str; } checked { ++index1; } }