Esempio n. 1
0
        private void MultiMode_Click(object sender, EventArgs e)
        {
            LoopImages.Visible     = false;
            RotateButton.Visible   = false;
            NextButton.Visible     = false;
            PreviousButton.Visible = false;

            if (!listBox1.Visible)
            {
                HideShowListButton.PerformClick();
            }
            ShowAllButton.Enabled  = true;
            listBox1.SelectionMode = SelectionMode.MultiExtended;
            CurrentMode.Text       = "Multi Mode";
            if (pictureBoxes.Count == 1)
            {
                ShowAllButton.PerformClick();
            }
        }
Esempio n. 2
0
 private void path_TextChanged(object sender, EventArgs e)
 {
     if (!Directory.Exists(path.Text))
     {
         errorProvider1.SetError(path, "The Path Isn't Valid");
     }
     else
     {
         errorProvider1.Clear();
         if (currentPath == path.Text || path.Text == "")
         {
             return;
         }
         if (ShowWarning("Do you want to change current dirictory?\nif yes it will remove all imeges in the list box"))
         {
             currentPath = path.Text;
             ShowAllButton.PerformClick();
         }
         else
         {
             path.Text = currentPath;
         }
     }
 }