Esempio n. 1
0
        public StartMenu(ATMData atmData)
        {
            StartPosition = FormStartPosition.CenterScreen;
            InitializeComponent();

            mAtmData   = atmData;
            mStateForm = new ATMStateForm(mAtmData);
        }
Esempio n. 2
0
        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;
        }