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(); }
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); }
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(); }