private void addcate_btn_Click(object sender, EventArgs e) { var trance = new ModalBackground(); var addcate = new ITEMS.Categories(); addcate.FormClosed += Addcate_FormClosed; trance.obj = addcate; trance.ShowDialog(); }
private void add_btn_Click(object sender, EventArgs e) { var obj = new ModalBackground(); var obj1 = new Item_Add(); obj1.onDataSaved += obj1_onDataSaved; obj.obj = obj1; obj.ShowDialog(); }
private void editToolStripMenuItem_Click(object sender, EventArgs e) { var sel = betterListView1.SelectedItems[0] as ItemViwer; var k = new Item_edit(); k.loaddata(sel.id); k.onDataEdited += K_onDataEdited; var b = new ModalBackground(); b.obj = k; b.ShowDialog(); }