Exemple #1
0
        public DXClusterClient(string host, 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      = 8.25f / ratio;

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

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

            if (comboDXCluster.Items.Count > 0)
            {
                comboDXCluster.SelectedIndex = 0;
            }
        }
Exemple #2
0
 private void btnSettings_Click(object sender, EventArgs e)
 {
     if (ClusterSetupForm != null && !ClusterSetupForm.IsDisposed)
     {
         ClusterSetupForm.Show();
     }
     else
     {
         ClusterSetupForm = new ClusterSetup(this);
         ClusterSetupForm.Show();
     }
 }
Exemple #3
0
        public DXClusterClient(string host, 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 = 8.25f / ratio;
            System.Drawing.Font new_font = new System.Drawing.Font(font_name, size);
            this.Font = new_font;

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

            if (comboDXCluster.Items.Count > 0)
                comboDXCluster.SelectedIndex = 0;
        }
 private void btnSettings_Click(object sender, EventArgs e)
 {
     if (ClusterSetupForm != null && !ClusterSetupForm.IsDisposed)
         ClusterSetupForm.Show();
     else
     {
         ClusterSetupForm = new ClusterSetup(this);
         ClusterSetupForm.Show();
     }
 }