private void btnInfo_Click(object sender, EventArgs e) { try { if (mCtrlInfo.IsDisposed) { mCtrlInfo = new frmInfo(this); } mCtrlInfo.SetInfo(mIdiomData); mCtrlInfo.Visible = !mCtrlInfo.Visible; //mCtrlInfo.Show(); mCtrlInfo.SetBounds(this.Location.X, this.Location.Y + this.Height - 5, mCtrlInfo.Width, mCtrlInfo.Height); } catch (Exception ex) { LogWriter.Write(MethodBase.GetCurrentMethod().Name, ex.StackTrace); } }
public frmMain() { try { InitializeComponent(); mMainExpandSize = new Size(1166, 298); mMainCollapseSize = new Size(767, 298); mCtrlData = new frmData(this); mCtrlInfo = new frmInfo(this); GetConfig(); mDs = mCtrlData.mDs; ChangeFormSize(); GetnextIdiom(); } catch (Exception ex) { LogWriter.Write(System.Reflection.MethodBase.GetCurrentMethod().Name, ex.StackTrace); } }