public StartMenu(ATMData atmData) { StartPosition = FormStartPosition.CenterScreen; InitializeComponent(); mAtmData = atmData; mStateForm = new ATMStateForm(mAtmData); }
private void mShowBankStatButton_Click(object sender, EventArgs e) { if (!mStateForm.Visible) { mStateForm = new ATMStateForm(mAtmData); mStateForm.Show(this); } mStateForm.Focus(); Point startPoint = new Point(); startPoint.X = Location.X + Width; startPoint.Y = Location.Y; mStateForm.Location = startPoint; mStateForm.StartPosition = FormStartPosition.Manual; }