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