예제 #1
0
 public static FrmSetting GetFrmSetting()
 {
     if (fs.IsDisposed)
     {
         fs = new FrmSetting();
         return(fs);
     }
     else
     {
         return(fs);
     }
 }
예제 #2
0
        //设置按钮单击事件
        private void btn_Setting_Click(object sender, EventArgs e)
        {
            //设置只能打开一个,配合窗体中中的Get窗体名()设置
            FrmSetting.GetFrmSetting().Activate();

            //接收窗体FormClosed事件返回的DialogResult,执行相应操作
            FrmSetting fs = new FrmSetting();

            if (fs.ShowDialog() == DialogResult.OK)
            {
                txtbox_GenerateTo.Text = Helper.ConfigHelper.getappSettings("DefaultProjectFolder");
            }
        }