Exemplo n.º 1
0
        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();
        }
Exemplo n.º 2
0
        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.");
            }
        }