Ejemplo n.º 1
0
 public void ActivateFrame(PrintDialogWidgetFrames frame, PrintJobDetails details)
 {
     if (current_frame != null)
     {
         previous = (PrintDialogWidgetFrames)current_frame.ID;
         current_frame.Visible = false;
         current_frame.OnDeactivate();
         current_frame = null;
     }
     current_frame         = frames[(int)(frame - 1000)];
     current_frame.Visible = true;
     current_frame.OnActivate(details);
 }
Ejemplo n.º 2
0
        public void CloseWindow()
        {
            if (current_frame != null)
            {
                current_frame.Visible = false;
                current_frame.OnDeactivate();
                current_frame = null;
            }
            Visible = false;
            if (host == null)
            {
                return;
            }

            host.GlobalChildDialog -= (this);
        }