Example #1
0
        private static OptionsDialog activeDialog = null; // reference to active dialog

        #endregion Fields

        #region Constructors

        public OptionsDialog()
        {
            //
            // The InitializeComponent() call is required for Windows Forms designer support.
            //
            InitializeComponent();

            //
            // TODO: Add constructor code after the InitializeComponent() call.
            //
            OwnInitializeComponent();
            InitializeValues();
            activeDialog = this;				// set reference to active dialog
            this.ShowPreview();
        }
Example #2
0
 /* Folgende Funktionen sollten in der erbenden Klasse überschrieben werden
  *
  * void HighlightEditorText()
  * void ImageClick(object sender, System.Windows.Forms.MouseEventArgs e)
  * void ShowInfoDialog()
  * void InitNewImage()
  * void DrawPage(Graphics drawDestination, uint page)
  * void AddPreview()
  * uint GetPages()
  * void DeleteData()
  *
  * Zudem folgende Variablen überschrieben werden
  *
  * appName = Name des Programms (nicht der exe !!)
  * fileFilter = Filtertext für die Dialoge Open/Save File
  *
  */
 protected virtual void OpenOptionsDialog()
 {
     if(OptionsDialog.ActiveDialog !=null){
         OptionsDialog.ActiveDialog.Close();
     }
     OptionsDialog.TargetBounds = this.Bounds;
     OptionsDialog sheetOptions = new OptionsDialog();
     sheetOptions.OnAcceptClick += new System.EventHandler(this.DialogOptionsAccept);
     sheetOptions.Location = OptionsDialog.DialogLocation;
     sheetOptions.Show();
 }
Example #3
0
 protected void CloseDialog(object sender, System.EventArgs e)
 {
     activeDialog=null;							// clear reference of active dialog
 }