Example #1
0
        public LOGStnSettings(LOG_export 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;
            ParrentForm = form;
            SetWindowPos(this.Handle.ToInt32(), -1, ParrentForm.Left, ParrentForm.Top,
                         this.Width, this.Height, 0); // on top others

            txtContestName.Text = ParrentForm.ContestName;
            txtRClub.Text       = ParrentForm.MyClub;
            txtOps1.Text        = ParrentForm.Operators1;
            txtOps2.Text        = ParrentForm.Operators2;
            txtAddr1.Text       = ParrentForm.MyAddr1;
            txtAddr2.Text       = ParrentForm.MyAddr2;
            txtPhone.Text       = ParrentForm.MyPhone;
            txtRemarks.Text     = ParrentForm.Remarks;
            txtCity.Text        = ParrentForm.MyCity;
            txtCountry.Text     = ParrentForm.MyCountry;
            txtCategory.Text    = ParrentForm.Category;
            txtTXequ.Text       = ParrentForm.TXequ;
            txtRXequ.Text       = ParrentForm.RXequ;
            txtAntenna.Text     = ParrentForm.Antenna;
            txtPower.Text       = ParrentForm.TXPower;
        }
        public LOGStnSettings(LOG_export 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;
            ParrentForm = form;
            SetWindowPos(this.Handle.ToInt32(), -1, ParrentForm.Left, ParrentForm.Top,
                this.Width, this.Height, 0);  // on top others

            txtContestName.Text = ParrentForm.ContestName;
            txtRClub.Text = ParrentForm.MyClub;
            txtOps1.Text = ParrentForm.Operators1;
            txtOps2.Text = ParrentForm.Operators2;
            txtAddr1.Text = ParrentForm.MyAddr1;
            txtAddr2.Text = ParrentForm.MyAddr2;
            txtPhone.Text = ParrentForm.MyPhone;
            txtRemarks.Text = ParrentForm.Remarks;
            txtCity.Text = ParrentForm.MyCity;
            txtCountry.Text = ParrentForm.MyCountry;
            txtCategory.Text = ParrentForm.Category;
            txtTXequ.Text = ParrentForm.TXequ;
            txtRXequ.Text = ParrentForm.RXequ;
            txtAntenna.Text = ParrentForm.Antenna;
            txtPower.Text = ParrentForm.TXPower;
        }
Example #3
0
        private void btnLogExport_Click(object sender, EventArgs e)
        {
            try
            {
                if (export_form == null || export_form.IsDisposed)
                {
                    export_form = new LOG_export(MainForm);
                }

                export_form.MyCALL = MainForm.SetupForm.txtStnCALL.Text;
                export_form.MyName = MainForm.SetupForm.txtStnName.Text;
                export_form.MyQTH  = MainForm.SetupForm.txtStnQTH.Text;
                export_form.MyLOC  = MainForm.SetupForm.txtStnLOC.Text;
                export_form.MyInfo = MainForm.SetupForm.txtStnInfoTxt.Text;
                export_form.MyZone = MainForm.SetupForm.txtStnZone.Text;
                export_form.Show();
            }
            catch (Exception ex)
            {
                Debug.Write(ex.ToString());
            }
        }
Example #4
0
        private void btnLogExport_Click(object sender, EventArgs e)
        {
            try
            {
                if (export_form == null || export_form.IsDisposed)
                    export_form = new LOG_export(MainForm);

                export_form.MyCALL = MainForm.SetupForm.txtStnCALL.Text;
                export_form.MyName = MainForm.SetupForm.txtStnName.Text;
                export_form.MyQTH = MainForm.SetupForm.txtStnQTH.Text;
                export_form.MyLOC = MainForm.SetupForm.txtStnLOC.Text;
                export_form.MyInfo = MainForm.SetupForm.txtStnInfoTxt.Text;
                export_form.MyZone = MainForm.SetupForm.txtStnZone.Text;
                export_form.Show();
            }
            catch (Exception ex)
            {
                Debug.Write(ex.ToString());
            }
        }