public void peep_creator(object sender, EventArgs e) { peepManager peepM = new peepManager(); peepM.Location = new Point(this.Location.X, this.Location.Y); //Globals.save_Uaction(); if (peepM.ShowDialog() == System.Windows.Forms.DialogResult.Yes) { //Globals.save_undoStep(); _peopleManager.redraw_panels_at_index(0); } }
public void peep_loader(object sender, EventArgs e) { peepManager peepM = new peepManager(); peepM.Location = new Point(Globals._mainForm.Location.X, Globals._mainForm.Location.Y); int index = (int)char.GetNumericValue((sender as Control).Name[2]); if (Globals._customers[(int)(index + scroll_index)] != null) { peepM.peep_load(Globals._customers[(int)(index + scroll_index)], (int)(index + scroll_index)); } else { //peepM } if (peepM.ShowDialog() == System.Windows.Forms.DialogResult.Yes) { //Globals.save_undoStep(); redraw_panels_at_index(0); } }