Пример #1
0
        private void btnAdd_Click(object sender, EventArgs e)
        {
            FormAddFile fa = new FormAddFile();

            fa.FormClosing += new FormClosingEventHandler(Fa_FormClosing);
            fa.ShowDialog();
        }
Пример #2
0
        private void btnEdit_Click(object sender, EventArgs e)
        {
            FormAddFile fa = new FormAddFile();

            fa.setName      = FileName;
            fa.setPath      = FilePath;
            fa.setId        = Id;
            fa.FormClosing += new FormClosingEventHandler(Fa_FormClosing);
            fa.ShowDialog();
        }