Beispiel #1
0
 /// <summary>
 /// This function, when executed, shows the toast form
 /// with animation.
 /// </summary>
 /// <param name="ski">An skImage instance stored in memory</param>
 public static void ShowToastForm(skImage ski)
 {
     //create a new toastform instance.
     using (toastform slice = new toastform(ski)) {
         slice.ShowDialog();
     }
 }
Beispiel #2
0
    /// <summary>
    /// This function, when executed, shows the toast form
    /// with animation.
    /// </summary>
    /// <param name="filename">Full path needed to send to toast form</param>
    private void ShowToastForm(string filename)
    {
        //create a new toastform instance.
        toastform slice = new toastform(filename);

        slice.Show();
    }
Beispiel #3
0
    private void toastform_FormClosed(object sender, FormClosedEventArgs e)
    {
        int myFormIndex = toastform.openForms.Count - 1;

        //Find the index of this form in the open form list.
        while (!(object.ReferenceEquals(toastform.openForms[myFormIndex], this)))
        {
            myFormIndex -= 1;
        }

        toastform openForm = default(toastform);

        //Move down any open forms above this one.
        for (int i = myFormIndex - 1; i >= 0; i += -1)
        {
            openForm      = (toastform)toastform.openForms[i];
            openForm.Top += this.Height + 5;
            openForm.Refresh();
        }

        //Remove this form from the open form list.
        toastform.openForms.Remove(this);
    }
Beispiel #4
0
 /// <summary>
 /// This function, when executed, shows the toast form
 /// with animation. 
 /// </summary>
 /// <param name="filename">Full path needed to send to toast form</param>
 private void ShowToastForm(string filename)
 {
     //create a new toastform instance.
     toastform slice = new toastform(filename);
     slice.Show();
 }
Beispiel #5
0
 /// <summary>
 /// This function, when executed, shows the toast form
 /// with animation. 
 /// </summary>
 /// <param name="filename">Full path needed to send to toast form</param>
 private void ShowToastForm(string filename)
 {
     //create a new random instance.
     Random rand = new Random();
     //create a new toastform instance.
     toastform slice = new toastform(System.IO.Path.Combine(mySettings.fileLocationSetting.ToString(), filename) + ".jpg");
     slice.Show();
     isBusy = false;
     rand = null;
 }
Beispiel #6
0
 /// <summary>
 /// This function, when executed, shows the toast form
 /// with animation. 
 /// </summary>
 /// <param name="ski">An skImage instance stored in memory</param>
 public static void ShowToastForm(skImage ski)
 {
     //create a new toastform instance.
     using (toastform slice = new toastform(ski)) {
         slice.ShowDialog();
     }
 }