private void Insert_Click(object sender, EventArgs e) { CODER_DETAIL P = new CODER_DETAIL(); P.KEYCOL = KEYCOL; P.Icon = DBase.CreateIcon(btnAdd.Image); P.Parent = this; P.ShowDialog(); if (P.res == 1) { Refresh(); } }
private void btnAdd_Click(object sender, EventArgs e) { ProcessList F = new ProcessList(); F.StartPosition = FormStartPosition.Manual; F.Icon = DBase.CreateIcon(btnAdd.Image); F.Location = new Point(this.Location.X + 50, this.Location.Y + 50); F.ShowDialog(); if (F.Res > 0) { edtAPPNAME.Text = F.APPNAME; if (F.I != null) { edtICON.Image = F.I; } else { edtICON.Image = null; } } }