Esempio n. 1
0
 /// <summary>
 /// Generates a Opened event when the dialog is opened
 /// </summary>
 /// <param name="sender">Event source object</param>
 /// <param name="args">Event arguments</param>
 protected void RaiseOpened(object sender, DialogEventArgs args)
 {
     if (Opened != null)
     {
         Opened(sender, args);
     }
 }
Esempio n. 2
0
 /// <summary>
 /// Generates a CloseCompleted event when the dialog has finished closing
 /// </summary>
 /// <param name="sender">Event source object</param>
 /// <param name="args">Event arguments</param>
 protected void RaiseCloseCompleted(object sender, DialogEventArgs args)
 {
     if (CloseCompleted != null)
     {
         CloseCompleted(sender, args);
     }
 }
Esempio n. 3
0
 private void status_popup_filename_Closed(object sender, Liquid.DialogEventArgs e)
 {
     if (status_popup_filename.Result == DialogButtons.OK)
     {
         global_filename = status_tbox_filename.Text;
         global_richtext = " ";
         App.Navigate(new MainMenu.editor());
     }
     status_rect_fader.Visibility = Visibility.Collapsed;
 }
Esempio n. 4
0
        /// <summary>
        /// This event is called when the dialog should close
        /// </summary>
        /// <param name="sender">Event source object</param>
        /// <param name="e">Event arguments</param>
        protected void TimerEnd(object sender, EventArgs e)
        {
            DialogEventArgs args = new DialogEventArgs();

            RaiseClosed(this, args);

            if (!args.Cancel)
            {
                Close();
            }
        }