Пример #1
0
        void tmiFunc_Click(object sender, EventArgs e)
        {
            FormAddFunCode formfuncode = new FormAddFunCode(null);

            formfuncode.RefreshData += formfuncode_RefreshData;
            formfuncode.ShowDialog();
        }
Пример #2
0
        public override int Add()
        {
            FormAddFunCode form = new FormAddFunCode(null);

            form.RefreshData += form_RefreshData;
            form.ShowDialog();
            return(base.Add());
        }
Пример #3
0
 private void treeViewFunCode_MouseDoubleClick(object sender, MouseEventArgs e)
 {
     if (e.Button == System.Windows.Forms.MouseButtons.Left)
     {
         if (treeViewFunCode.SelectedNode == null)
         {
             return;
         }
         FishEntity.FunCodeEntity entity = treeViewFunCode.SelectedNode.Tag as FishEntity.FunCodeEntity;
         if (entity == null)
         {
             return;
         }
         FormAddFunCode formfuncode = new FormAddFunCode(entity);
         formfuncode.RefreshData += formfuncode_RefreshData;
         formfuncode.ShowDialog();
     }
 }