Exemplo n.º 1
0
 /// <summary>
 /// Generate a new FrmMain form.
 /// </summary>
 /// <param name="args">A collection of arguments.</param>
 public FrmMain(string[] args)
 {
     InitializeComponent();
     try
     {
         _lvlManager = new ListViewLockerManager();
         _languageManager = new LanguageManager();
         _update = new Update();
         if (Properties.Settings.Default.Language == 5)
         {
             _languageManager.LoadLanguage(Properties.Settings.Default.LanguagePath);
         }
         else
         {
             _languageManager.LoadLanguage();
         }
         LanguageSwitch();
     }
     catch (Exception ex)
     {
         MessageBoxAdv.Show(ex.Message, "DeadLock", MessageBoxButtons.OK, MessageBoxIcon.Error);
     }
     _args = args;
 }
Exemplo n.º 2
0
        private void clearItemsToolStripMenuItem_Click(object sender, EventArgs e)
        {
            _lvlManager = new ListViewLockerManager();
            lsvItems.Items.Clear();
            lsvDetails.Items.Clear();
            imgFileIcons.Images.Clear();

            _lvlManager.CancelAllTasks();
            _lvlManager = new ListViewLockerManager();
        }