Beispiel #1
0
        private void settingsToolStripMenuItem_Click(object sender, EventArgs e)
        {
            try
            {
                if (SettingsForm == null || SettingsForm.IsDisposed)
                {
                    SettingsForm = new LOGStnSettings(this);
                }

                SettingsForm.Show();
            }
            catch (Exception ex)
            {
                Debug.Write(ex.ToString());
            }
        }
Beispiel #2
0
        public LOG_export(CWExpert form)
        {
            this.AutoScaleMode = AutoScaleMode.Inherit;
            InitializeComponent();
            float  dpi       = this.CreateGraphics().DpiX;
            float  ratio     = dpi / 96.0f;
            string font_name = this.Font.Name;
            float  size      = 8.25f / ratio;

            System.Drawing.Font new_font = new System.Drawing.Font(font_name, size);
            this.Font = new_font;
            comboLOGformat.SelectedIndex = 0;
            MainForm = form;
            GetOptions();
            SetWindowPos(this.Handle.ToInt32(), -1, this.Left, this.Top,
                         this.Width, this.Height, 0); // on top others
            SettingsForm = new LOGStnSettings(this);
        }
        private void settingsToolStripMenuItem_Click(object sender, EventArgs e)
        {
            try
            {
                if (SettingsForm == null || SettingsForm.IsDisposed)
                    SettingsForm = new LOGStnSettings(this);

                SettingsForm.Show();
            }
            catch (Exception ex)
            {
                Debug.Write(ex.ToString());
            }
        }
 public LOG_export(CWExpert form)
 {
     this.AutoScaleMode = AutoScaleMode.Inherit;
     InitializeComponent();
     float dpi = this.CreateGraphics().DpiX;
     float ratio = dpi / 96.0f;
     string font_name = this.Font.Name;
     float size = 8.25f / ratio;
     System.Drawing.Font new_font = new System.Drawing.Font(font_name, size);
     this.Font = new_font;
     comboLOGformat.SelectedIndex = 0;
     MainForm = form;
     GetOptions();
     SetWindowPos(this.Handle.ToInt32(), -1, this.Left, this.Top,
         this.Width, this.Height, 0);  // on top others
     SettingsForm = new LOGStnSettings(this);
 }