コード例 #1
0
 /// <summary>
 /// 窗体加载时
 /// </summary>
 /// <param name="sender">传送对象</param>
 /// <param name="e">传送事件</param>
 private void SplashScreen_Load(object sender, EventArgs e)
 {
     Text          = Core.ConfigHelper.AppName;
     lblTitle.Text = this.Text;
     lblVer.Text   = Core.ConfigHelper.AppVersion;
     FEffects.ShowEff(Handle, 500, FEffects.AW_ACTIVATE | FEffects.AW_CENTER);
 }
コード例 #2
0
 /// <summary>
 /// 窗体关闭时
 /// </summary>
 /// <param name="sender">传送对象</param>
 /// <param name="e">传送事件</param>
 private void SplashScreen_FormClosing(object sender, FormClosingEventArgs e)
 {
     FEffects.ShowEff(Handle, 500, FEffects.AW_HIDE | FEffects.AW_BLEND);
     if (!FCloseFlag)
     {
         e.Cancel = true;
     }
 }
コード例 #3
0
 /// <summary>
 /// 窗体关闭时
 /// </summary>
 /// <param name="sender">传送对象</param>
 /// <param name="e">传送事件</param>
 private void LoginForm_FormClosing(object sender, FormClosingEventArgs e)
 {
     if (MessageBox.Show(string.Format("您确定要退出【{0}】吗?", Core.ConfigHelper.AppName), "提示", MessageBoxButtons.YesNo, MessageBoxIcon.Question) == DialogResult.Yes)
     {
         this._closeFlag = true;
         e.Cancel        = false;
         FEffects.ShowEff(this.Handle, 500, FEffects.AW_HIDE | FEffects.AW_BLEND);
     }
     else
     {
         e.Cancel = true;
     }
 }
コード例 #4
0
        /// <summary>
        /// 窗体关闭时
        /// </summary>
        /// <param name="sender">传送对象</param>
        /// <param name="e">传送事件</param>
        private void MainForm_FormClosing(object sender, FormClosingEventArgs e)
        {
            if (MessageBox.Show("您确定要退出本系统吗?", "【晨曦小竹·工具集】提示信息", MessageBoxButtons.YesNo, MessageBoxIcon.Question) == DialogResult.Yes)
            {
                CloseAllForm();

                if (!IsDisposed)
                {
                    FEffects.ShowEff(this.Handle, 500, FEffects.AW_HIDE | FEffects.AW_BLEND);
                }
            }
            else
            {
                e.Cancel = true;
            }
        }
コード例 #5
0
ファイル: frmMain.cs プロジェクト: cockroach888/DawnTools
 /// <summary>
 /// 窗体关闭时
 /// </summary>
 /// <param name="sender">传送对象</param>
 /// <param name="e">传送事件</param>
 private void frmMain_FormClosing(object sender, FormClosingEventArgs e)
 {
     FEffects.ShowEff(this.Handle, 500, FEffects.AW_HIDE | FEffects.AW_BLEND);
 }
コード例 #6
0
ファイル: frmMain.cs プロジェクト: cockroach888/DawnTools
 /// <summary>
 /// 窗体加载时
 /// </summary>
 /// <param name="sender">传送对象</param>
 /// <param name="e">传送事件</param>
 private void frmMain_Load(object sender, EventArgs e)
 {
     FEffects.ShowEff(this.Handle, 500, FEffects.AW_ACTIVATE | FEffects.AW_CENTER);
 }
コード例 #7
0
 /// <summary>
 /// 窗体加载时
 /// </summary>
 /// <param name="sender">传送对象</param>
 /// <param name="e">传送事件</param>
 private void LoginForm_Load(object sender, EventArgs e)
 {
     Text = Core.ConfigHelper.AppName;
     FEffects.ShowEff(this.Handle, 500, FEffects.AW_ACTIVATE | FEffects.AW_CENTER);
 }