示例#1
0
        private void metroTile3_Click(object sender, EventArgs e)
        {
            BusinessObjects.MemoryManagement.FlushMemory();
            this.Hide();
            var form2 = new ManageStock();

            form2.Closed += (s, args) => this.Dispose();
            form2.Show();
        }
示例#2
0
        private void metroTileItem7_Click(object sender, EventArgs e)
        {
            //System.GC.Collect();
            ////BusinessObjects.MemoryManagement.FlushMemory();
            this.Hide();
            var form2 = new ManageStock();

            form2.Closed += (s, args) => this.Close();
            form2.Show();
            // MetroMessageBox.Show(this, "Function Disabled2", "MetroMessageBox", MessageBoxButtons.RetryCancel, MessageBoxIcon.Error);
        }
示例#3
0
        public StockReturn(ManageStock form, int sid)
        {
            InitializeComponent();
            this.CenterToScreen();
            this.Movable     = false;
            this.Resizable   = false;
            this.MaximizeBox = false;
            this.TopMost     = true;
            globalForm       = form;

            stockID = sid;
            increaseWidth();
            loadGrid();
        }