Ejemplo n.º 1
0
 private void ShowTickerSettingForm()
 {
     if (base.InvokeRequired)
     {
         base.Invoke(new ucTickerSlide.ShowTickerSettingFormCallBack(this.ShowTickerSettingForm));
     }
     else
     {
         try
         {
             if (this._frmTickerSetting != null)
             {
                 if (!this._frmTickerSetting.IsDisposed)
                 {
                     this._frmTickerSetting.Dispose();
                 }
                 this._frmTickerSetting = null;
             }
             this._frmTickerSetting = new frmTickerSetting(this._filterType);
             this._frmTickerSetting.FormClosing -= new FormClosingEventHandler(this.frmTickerSetting_FormClosing);
             this._frmTickerSetting.FormClosing += new FormClosingEventHandler(this.frmTickerSetting_FormClosing);
             this._frmTickerSetting.TopLevel = false;
             this._frmTickerSetting.Parent = base.Parent.Parent;
             this._frmTickerSetting.Location = new Point((this._frmTickerSetting.Parent.Width - this._frmTickerSetting.Width) / 2, (this._frmTickerSetting.Parent.Height - this._frmTickerSetting.Height) / 2);
             this._frmTickerSetting.TopMost = true;
             this._frmTickerSetting.Show();
             this._frmTickerSetting.BringToFront();
         }
         catch (Exception ex)
         {
             this.ShowError("ShowMessageInFormConfirm", ex);
         }
     }
 }
Ejemplo n.º 2
0
 public frmTickerSetting(frmTickerSetting.filterType filterType)
 {
     this.InitializeComponent();
     this._filterTickerType = filterType;
 }