Exemple #1
0
 private void SaveAndReloadButton_Click(object sender, EventArgs e)
 {
     CancelButton.PerformClick();
     FilterAndSearchConfig.SaveSort();
     if (parentForm.ContentPanel.Controls.Count == 1)
     {
         if (parentForm.ContentPanel.Controls[0] is BigAlbumView)
         {
             BigAlbumView buf = (BigAlbumView)parentForm.ContentPanel.Controls[0];
             Close();
             if (buf.isSlide())
             {
                 parentForm.SlideModeButton.PerformClick();
             }
             return;
         }
     }
     parentForm.HomeButton.PerformClick();
     Close();
 }
Exemple #2
0
 private void SaveAndReloadButton_Click(object sender, EventArgs e)
 {
     if (ValidateForm() == false)
     {
         return;
     }
     SaveToDatabase();
     CancelButton.PerformClick();
     if (parentForm.ContentPanel.Controls.Count == 1)
     {
         if (parentForm.ContentPanel.Controls[0] is BigAlbumView)
         {
             BigAlbumView buf = (BigAlbumView)parentForm.ContentPanel.Controls[0];
             if (buf.isSlide())
             {
                 parentForm.SlideModeButton.PerformClick();
             }
             Close();
             return;
         }
     }
     parentForm.HomeButton.PerformClick();
 }