Exemplo n.º 1
0
        public DXClusterClient(string call, string name, string qth)
        {
            this.AutoScaleMode = AutoScaleMode.Inherit;
            InitializeComponent();
            float dpi = this.CreateGraphics().DpiX;
            float ratio = dpi / 96.0f;
            string font_name = this.Font.Name;
            float size = (float)(8.25 / ratio);
            System.Drawing.Font new_font = new System.Drawing.Font(font_name, size);
            this.Font = new_font;
            this.PerformAutoScale();
            this.PerformLayout();

            client = new TelnetClient(this);
            CALL = call;
            NAME = name;
            QTH = qth;
            GetOptions();
            ClusterSetupForm = new ClusterSetup(this);

            if (comboDXCluster.Items.Count > 0)
                comboDXCluster.SelectedIndex = 0;

            CMD1 = ClusterSetupForm.btn1cmd.Text.ToString();
            CMD2 = ClusterSetupForm.btn2cmd.Text.ToString();
            CMD3 = ClusterSetupForm.btn3cmd.Text.ToString();
            CMD4 = ClusterSetupForm.btn4cmd.Text.ToString();
        }
Exemplo n.º 2
0
        public DXClusterClient(Console ptr, string call, string name, string qth)
        {
            MainWindow         = ptr;
            this.AutoScaleMode = AutoScaleMode.Inherit;
            InitializeComponent();
            float  dpi       = this.CreateGraphics().DpiX;
            float  ratio     = dpi / 96.0f;
            string font_name = this.Font.Name;
            float  size      = (float)(8.25 / ratio);

            System.Drawing.Font new_font = new System.Drawing.Font(font_name, size);
            this.Font = new_font;
            this.PerformAutoScale();
            this.PerformLayout();

            client = new TelnetClient(this);
            CALL   = call;
            NAME   = name;
            QTH    = qth;
            GetOptions();
            ClusterSetupForm = new ClusterSetup(this);

            if (comboDXCluster.Items.Count > 0)
            {
                comboDXCluster.SelectedIndex = 0;
            }

            CMD1 = ClusterSetupForm.btn1cmd.Text.ToString();
            CMD2 = ClusterSetupForm.btn2cmd.Text.ToString();
            CMD3 = ClusterSetupForm.btn3cmd.Text.ToString();
            CMD4 = ClusterSetupForm.btn4cmd.Text.ToString();
        }