示例#1
0
 private void LoadFolder()
 {
     DisableCheckingItems = true;
     UseWaitCursor        = true;
     ListViewPictures.Items.Clear();
     WorkerLoad.RunWorkerAsync(FolderDialog.SelectedPath);
 }
示例#2
0
        /// <summary>
        /// Windows Form Load.
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void FormSettings_Load(object sender, EventArgs e)
        {
            GlobalWindowManager.AddWindow(this);

            Text = Localization.Strings.Settings + " - " + Localization.Strings.TrayTOTPPlugin; // Set form's name using constants.
            Working(true, true);                                                                // Set controls depending on the state of action.
            WorkerLoad.RunWorkerAsync();                                                        // Load Settings in form controls.
        }
示例#3
0
 /// <summary>
 /// Windows Form Closing.
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 private void FormSettings_FormClosing(object sender, FormClosingEventArgs e)
 {
     if (WorkerLoad.IsBusy)
     {
         ButtonCancel.Enabled = false;
         WorkerLoad.CancelAsync();
         e.Cancel = true;
     }
     if (WorkerSave.IsBusy)
     {
         ButtonCancel.Enabled = false;
         WorkerSave.CancelAsync();
         e.Cancel = true;
     }
     if (WorkerReset.IsBusy)
     {
         ButtonCancel.Enabled = false;
         WorkerReset.CancelAsync();
         e.Cancel = true;
     }
 }
示例#4
0
 private void WorkerReset_RunWorkerCompleted(object sender, RunWorkerCompletedEventArgs e)
 {
     WorkerLoad.RunWorkerAsync("Reset");
 }
示例#5
0
 /// <summary>
 /// Windows Form Load.
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 private void FormSettings_Load(object sender, EventArgs e)
 {
     Text = TrayTOTP_Plugin_Localization.strSettings + TrayTOTP_Plugin_Localization.strSpaceDashSpace + TrayTOTP_Plugin_Localization.strTrayTOTPPlugin; // Set form's name using constants.
     Working(true, true);                                                                                                                               // Set controls depending on the state of action.
     WorkerLoad.RunWorkerAsync();                                                                                                                       // Load Settings in form controls.
 }