private void radMenuItem22_Click(object sender, EventArgs e) { this.Cursor = Cursors.WaitCursor; HistoryScreen gy = new HistoryScreen(""); this.Cursor = Cursors.Default; gy.ShowDialog(); GC.Collect(); GC.WaitForPendingFinalizers(); ClassLib.Memory.SetProcessWorkingSetSize(System.Diagnostics.Process.GetCurrentProcess().Handle, -1, -1); ClassLib.Memory.Heap(); }
private void radMenuItem22_Click(object sender, EventArgs e) { if (StockControl.dbClss.Permisstion("", "HistoryScreen", ClassLib.Classlib.User) || ClassLib.Classlib.User.ToUpper().Trim() == "ADMIN") { this.Cursor = Cursors.WaitCursor; HistoryScreen gy = new HistoryScreen(""); this.Cursor = Cursors.Default; gy.ShowDialog(); GC.Collect(); GC.WaitForPendingFinalizers(); ClassLib.Memory.SetProcessWorkingSetSize(System.Diagnostics.Process.GetCurrentProcess().Handle, -1, -1); ClassLib.Memory.Heap(); } else { dbClss.WarningIT("No Permisstion."); } }