Пример #1
0
        static void win_SelectedOk(object sender, CheckSelectedOkEventArgs e)
        {
            var win  = sender as TreeSelectForm;
            var node = win.daTreeView1.Selected as IDatabaseTreeNode;

            if (node == null || node.DatabaseConnection == null)
            {
                StdDialog.ShowError("s_please_select_database");
                return;
            }
        }
Пример #2
0
 private void btnOk_Click(object sender, EventArgs e)
 {
     if (SelectedOk != null)
     {
         var ev = new CheckSelectedOkEventArgs();
         SelectedOk(this, ev);
         if (!ev.SelectedOk)
         {
             return;
         }
     }
     DialogResult = DialogResult.OK;
     Close();
 }