void Event_AddRelation(object sender, EventArgs e) { DisableInputs(); RelationWindow rw = new RelationWindow(); ALLWINDOWS.Add(rw); rw.Show(); rw.Closed += new EventHandler(WindowClosing); }
void EditRelationButton(object sender, EventArgs e) { Button b = (Button)sender; Console.WriteLine(b.Name); int indx = Convert.ToInt32(b.Name.Replace("editBtn", "")); Relation r = CURRENTDISPLAYEDRELATION[indx]; DisableInputs(); RelationWindow rw = new RelationWindow(); ALLWINDOWS.Add(rw); rw.Current = r; rw.Show(); rw.Closed += new EventHandler(WindowClosing); rw.Refresh(); DisableInputs(); }