Exemplo n.º 1
0
        //private bool m_detailMode = true;
        /// <summary>
        /// 显示和隐藏服务器连接设置表单
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void btnSetup_Click(object sender, EventArgs e)
        {
            string fileName = SystemDirectory.WorkDirectory + "\\connectionStrings.config";

            if (!File.Exists(fileName))
            {
                MessageForm.ShowError("您不具有设置权限!");
            }
            else
            {
                using (ConnectionStringModifyForm form = new ConnectionStringModifyForm(fileName))
                {
                    form.ShowDialog();
                }
            }
            //using (LoginSetupForm form = new LoginSetupForm())
            //{
            //    form.ShowDialog(this);
            //}
        }
 private void tsmConnectionStringAdmin_Click(object sender, EventArgs e)
 {
     using (ConnectionStringModifyForm form = new ConnectionStringModifyForm())
     {
         form.ShowDialog();
     }
 }
Exemplo n.º 3
0
 //private bool m_detailMode = true;
 /// <summary>
 /// ��ʾ�����ط������������ñ��
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 private void btnSetup_Click(object sender, EventArgs e)
 {
     string fileName = SystemDirectory.WorkDirectory + "\\connectionStrings.config";
     if (!File.Exists(fileName))
     {
         MessageForm.ShowError("������������Ȩ�ޣ�");
     }
     else
     {
         using (ConnectionStringModifyForm form = new ConnectionStringModifyForm(fileName))
         {
             form.ShowDialog();
         }
     }
     //using (LoginSetupForm form = new LoginSetupForm())
     //{
     //    form.ShowDialog(this);
     //}
 }