예제 #1
0
        private void CleanUp_Click(object sender, EventArgs e)
        {
            var Clean = new CleanUp
            {
                StartPosition = System.Windows.Forms.FormStartPosition.Manual
            };

            Clean.Location = new System.Drawing.Point((this.Location.X + this.Width / 2) - (Clean.Width / 2), (this.Location.Y + this.Height / 2) - (Clean.Height / 2));
            Clean.ShowDialog();
            switch (CleanFlag)
            {
            case CleanEnum.None: break;

            case CleanEnum.Current: CleanOutput(FileHistory.Text); break;

            case CleanEnum.All: CleanUpAll();
                break;
            }
        }