Exemplo n.º 1
0
        public void GetOptions()
        {
            try
            {
                ArrayList a = DB.GetVars("RecorderOptions");
                a.Sort();

                foreach (string s in a)
                {
                    string[] vals = s.Split('/');
                    string   name = vals[0];
                    string   val  = vals[1];

                    if (s.StartsWith("Recorder_top"))
                    {
                        int top = Int32.Parse(vals[1]);
                        this.Top = top;
                    }
                    else if (s.StartsWith("Recorder_left"))
                    {
                        int left = Int32.Parse(vals[1]);
                        this.Left = left;
                    }
                    else if (s.StartsWith("BufferSize"))
                    {
                        buffer_size = int.Parse(vals[1]);
                    }
                }
            }
            catch (Exception ex)
            {
                Debug.Write(ex.ToString());
            }
        }
Exemplo n.º 2
0
        public void RestoreState()
        {
            try
            {
                ArrayList a = DB.GetVars("LOG Options");
                a.Sort();

                // restore saved values to the controls
                foreach (string s in a)
                {
                    string[] vals = s.Split('/');
                    string   name = vals[0];
                    string   val  = vals[1];

                    if (s.StartsWith("log_top"))
                    {
                        int top = Int32.Parse(vals[1]);
                        this.Top = top;
                    }
                    else if (s.StartsWith("log_left"))
                    {
                        int left = Int32.Parse(vals[1]);
                        this.Left = left;
                    }
                    else if (s.StartsWith("log_width"))
                    {
                        int width = Int32.Parse(vals[1]);
                        this.Width = width;
                    }
                    else if (s.StartsWith("log_height"))
                    {
                        int height = Int32.Parse(vals[1]);
                        this.Height = height;
                    }
                }
            }
            catch (Exception ex)
            {
                Debug.Write(ex.ToString());
            }
        }
Exemplo n.º 3
0
        public void GetOptions()
        {
            try
            {
                ArrayList a = DB.GetVars("DXCCOptions");
                a.Sort();

                foreach (string s in a)
                {
                    string[] vals = s.Split('/');
                    string   name = vals[0];

                    if (vals.Length > 2)
                    {
                        for (int i = 2; i < vals.Length; i++)
                        {
                            vals[1] += "/" + vals[i];
                        }
                    }

                    string val = vals[1];

                    if (s.StartsWith("DXCC_top"))
                    {
                        int top = Int32.Parse(vals[1]);
                        this.Top = top;
                    }
                    else if (s.StartsWith("DXCC_left"))
                    {
                        int left = Int32.Parse(vals[1]);
                        this.Left = left;
                    }
                }
            }
            catch (Exception ex)
            {
                Debug.Write(ex.ToString());
            }
        }
Exemplo n.º 4
0
        public void GetOptions()
        {
            try
            {
                ArrayList a = DB.GetVars("RecorderOptions");
                a.Sort();

                foreach (string s in a)
                {
                    string[] vals = s.Split('/');
                    string   name = vals[0];
                    string   val  = vals[1];

                    if (s.StartsWith("BufferSize"))
                    {
                        udRecBufferSize.Value = int.Parse(vals[1]);
                    }
                }
            }
            catch (Exception ex)
            {
                Debug.Write(ex.ToString());
            }
        }
Exemplo n.º 5
0
        public void GetOptions()
        {
            try
            {
                ArrayList a = DB.GetVars("KeyboardOptions");
                a.Sort();

                foreach (string s in a)
                {
                    string[] vals = s.Split('/');
                    string   name = vals[0];

                    if (vals.Length > 2)
                    {
                        for (int i = 2; i < vals.Length; i++)
                        {
                            vals[1] += "/" + vals[i];
                        }
                    }

                    string val = vals[1];

                    if (s.StartsWith("Keyboard_top"))
                    {
                        int top = Int32.Parse(vals[1]);
                        this.Top = top;
                    }
                    else if (s.StartsWith("Keyboard_left"))
                    {
                        int left = Int32.Parse(vals[1]);
                        this.Left = left;
                    }
                    else if (s.StartsWith("btn1text"))
                    {
                        btn1.Text = vals[1];

                        if (SetupForm != null)
                        {
                            SetupForm.txtButton1.Text = vals[1];
                        }
                    }
                    else if (s.StartsWith("btn2text"))
                    {
                        btn2.Text = vals[1];

                        if (SetupForm != null)
                        {
                            SetupForm.txtButton2.Text = vals[1];
                        }
                    }
                    else if (s.StartsWith("btn3text"))
                    {
                        btn3.Text = vals[1];

                        if (SetupForm != null)
                        {
                            SetupForm.txtButton3.Text = vals[1];
                        }
                    }
                    else if (s.StartsWith("btn4text"))
                    {
                        btn4.Text = vals[1];

                        if (SetupForm != null)
                        {
                            SetupForm.txtButton4.Text = vals[1];
                        }
                    }
                    else if (s.StartsWith("btn5text"))
                    {
                        btn5.Text = vals[1];

                        if (SetupForm != null)
                        {
                            SetupForm.txtButton5.Text = vals[1];
                        }
                    }
                    else if (s.StartsWith("btn6text"))
                    {
                        btn6.Text = vals[1];

                        if (SetupForm != null)
                        {
                            SetupForm.txtButton6.Text = vals[1];
                        }
                    }
                    else if (s.StartsWith("btn7text"))
                    {
                        btn7.Text = vals[1];

                        if (SetupForm != null)
                        {
                            SetupForm.txtButton7.Text = vals[1];
                        }
                    }
                    else if (s.StartsWith("btn8text"))
                    {
                        btn8.Text = vals[1];

                        if (SetupForm != null)
                        {
                            SetupForm.txtButton8.Text = vals[1];
                        }
                    }
                    else if (s.StartsWith("btn1cmd"))
                    {
                        CMD1 = vals[1];

                        if (SetupForm != null)
                        {
                            SetupForm.btn1cmd.Text = vals[1];
                        }
                    }
                    else if (s.StartsWith("btn2cmd"))
                    {
                        CMD2 = vals[1];

                        if (SetupForm != null)
                        {
                            SetupForm.btn2cmd.Text = vals[1];
                        }
                    }
                    else if (s.StartsWith("btn3cmd"))
                    {
                        CMD3 = vals[1];

                        if (SetupForm != null)
                        {
                            SetupForm.btn3cmd.Text = vals[1];
                        }
                    }
                    else if (s.StartsWith("btn4cmd"))
                    {
                        CMD4 = vals[1];

                        if (SetupForm != null)
                        {
                            SetupForm.btn4cmd.Text = vals[1];
                        }
                    }
                    else if (s.StartsWith("btn5cmd"))
                    {
                        CMD5 = vals[1];

                        if (SetupForm != null)
                        {
                            SetupForm.btn5cmd.Text = vals[1];
                        }
                    }
                    else if (s.StartsWith("btn6cmd"))
                    {
                        CMD6 = vals[1];

                        if (SetupForm != null)
                        {
                            SetupForm.btn6cmd.Text = vals[1];
                        }
                    }
                    else if (s.StartsWith("btn7cmd"))
                    {
                        CMD7 = vals[1];

                        if (SetupForm != null)
                        {
                            SetupForm.btn7cmd.Text = vals[1];
                        }
                    }
                    else if (s.StartsWith("btn8cmd"))
                    {
                        CMD8 = vals[1];

                        if (SetupForm != null)
                        {
                            SetupForm.btn8cmd.Text = vals[1];
                        }
                    }
                }
            }
            catch (Exception ex)
            {
                Debug.Write(ex.ToString());
            }
        }
Exemplo n.º 6
0
        public void GetOptions()
        {
            try
            {
                ArrayList a = DB.GetVars("KeyboardOptions");
                a.Sort();

                foreach (string s in a)
                {
                    string[] vals = s.Split('/');
                    string name = vals[0];

                    if (vals.Length > 2)
                    {
                        for (int i = 2; i < vals.Length; i++)
                            vals[1] += "/" + vals[i];
                    }

                    string val = vals[1];

                    if (s.StartsWith("btn1text"))
                    {
                        txtButton1.Text = vals[1];
                    }
                    else if (s.StartsWith("btn2text"))
                    {
                        txtButton2.Text = vals[1];
                    }
                    else if (s.StartsWith("btn3text"))
                    {
                        txtButton3.Text = vals[1];
                    }
                    else if (s.StartsWith("btn4text"))
                    {
                        txtButton4.Text = vals[1];
                    }
                    else if (s.StartsWith("btn5text"))
                    {
                        txtButton5.Text = vals[1];
                    }
                    else if (s.StartsWith("btn6text"))
                    {
                        txtButton6.Text = vals[1];
                    }
                    else if (s.StartsWith("btn7text"))
                    {
                        txtButton7.Text = vals[1];
                    }
                    else if (s.StartsWith("btn8text"))
                    {
                        txtButton8.Text = vals[1];
                    }
                    else if (s.StartsWith("btn1cmd"))
                    {
                        btn1cmd.Text = vals[1];
                    }
                    else if (s.StartsWith("btn2cmd"))
                    {
                        btn2cmd.Text = vals[1];
                    }
                    else if (s.StartsWith("btn3cmd"))
                    {
                        btn3cmd.Text = vals[1];
                    }
                    else if (s.StartsWith("btn4cmd"))
                    {
                        btn4cmd.Text = vals[1];
                    }
                    else if (s.StartsWith("btn5cmd"))
                    {
                        btn5cmd.Text = vals[1];
                    }
                    else if (s.StartsWith("btn6cmd"))
                    {
                        btn6cmd.Text = vals[1];
                    }
                    else if (s.StartsWith("btn7cmd"))
                    {
                        btn7cmd.Text = vals[1];
                    }
                    else if (s.StartsWith("btn8cmd"))
                    {
                        btn8cmd.Text = vals[1];
                    }
                }
            }
            catch (Exception ex)
            {
                Debug.Write(ex.ToString());
            }
        }
Exemplo n.º 7
0
        public void GetOptions()
        {
            try
            {
                ArrayList a = DB.GetVars("LOGExportOptions");
                a.Sort();

                foreach (string s in a)
                {
                    string[] vals = s.Split('/');
                    string   name = vals[0];

                    if (vals.Length > 2)
                    {
                        for (int i = 2; i < vals.Length; i++)
                        {
                            vals[1] += "/" + vals[i];
                        }
                    }

                    string val = vals[1];

                    if (s.StartsWith("LOGexport_top"))
                    {
                        int top = Int32.Parse(vals[1]);
                        this.Top = top;
                    }
                    else if (s.StartsWith("LOGExport_left"))
                    {
                        int left = Int32.Parse(vals[1]);
                        this.Left = left;
                    }
                    else if (s.StartsWith("ContestName"))
                    {
                        ContestName = vals[1];
                    }
                    else if (s.StartsWith("MyClub"))
                    {
                        MyClub = vals[1];
                    }
                    else if (s.StartsWith("Operators1"))
                    {
                        Operators1 = vals[1];
                    }
                    else if (s.StartsWith("Operators2"))
                    {
                        Operators2 = vals[1];
                    }
                    else if (s.StartsWith("MyAddr1"))
                    {
                        MyAddr1 = vals[1];
                    }
                    else if (s.StartsWith("MyAddr2"))
                    {
                        MyAddr2 = vals[1];
                    }
                    else if (s.StartsWith("MyCity"))
                    {
                        MyCity = vals[1];
                    }
                    else if (s.StartsWith("MyCountry"))
                    {
                        MyCountry = vals[1];
                    }
                    else if (s.StartsWith("MyPhone"))
                    {
                        MyPhone = vals[1];
                    }
                    else if (s.StartsWith("Remarks"))
                    {
                        Remarks = vals[1];
                    }
                    else if (s.StartsWith("Antenna"))
                    {
                        Antenna = vals[1];
                    }
                    else if (s.StartsWith("TXEqu"))
                    {
                        TXequ = vals[1];
                    }
                    else if (s.StartsWith("RXEqu"))
                    {
                        RXequ = vals[1];
                    }
                    else if (s.StartsWith("Category"))
                    {
                        Category = vals[1];
                    }
                    else if (s.StartsWith("TXPower"))
                    {
                        TXPower = vals[1];
                    }
                }
            }
            catch (Exception ex)
            {
                Debug.Write(ex.ToString());
            }
        }
Exemplo n.º 8
0
        public void GetOptions()
        {
            try
            {
                ArrayList a = DB.GetVars("DXClusterOptions");
                a.Sort();

                foreach (string s in a)
                {
                    string[] vals = s.Split('/');
                    string   name = vals[0];

                    if (vals.Length > 2)
                    {
                        for (int i = 2; i < vals.Length; i++)
                        {
                            vals[1] += "/" + vals[i];
                        }
                    }

                    string val = vals[1];

                    if (s.StartsWith("Cluster"))
                    {
                        txtHosts.AppendText(val + "\n");
                        SendMessage(txtHosts.Handle, WM_VSCROLL, SB_BOTTOM, 0);
                    }
                    else if (s.StartsWith("btn1text"))
                    {
                        txtButton1.Text = vals[1];
                    }
                    else if (s.StartsWith("btn2text"))
                    {
                        txtButton2.Text = vals[1];
                    }
                    else if (s.StartsWith("btn3text"))
                    {
                        txtButton3.Text = vals[1];
                    }
                    else if (s.StartsWith("btn4text"))
                    {
                        txtButton4.Text = vals[1];
                    }
                    else if (s.StartsWith("btn1cmd"))
                    {
                        btn1cmd.Text = vals[1];
                    }
                    else if (s.StartsWith("btn2cmd"))
                    {
                        btn2cmd.Text = vals[1];
                    }
                    else if (s.StartsWith("btn3cmd"))
                    {
                        btn3cmd.Text = vals[1];
                    }
                    else if (s.StartsWith("btn4cmd"))
                    {
                        btn4cmd.Text = vals[1];
                    }
                }
            }
            catch (Exception ex)
            {
                Debug.Write(ex.ToString());
            }
        }
Exemplo n.º 9
0
        public void GetOptions()
        {
            try
            {
                ArrayList a = DB.GetVars("DXClusterOptions");
                a.Sort();

                foreach (string s in a)
                {
                    string[] vals = s.Split('/');
                    string   name = vals[0];

                    if (vals.Length > 2)
                    {
                        for (int i = 2; i < vals.Length; i++)
                        {
                            vals[1] += "/" + vals[i];
                        }
                    }

                    string val = vals[1];

                    if (s.StartsWith("DXcluster_top"))
                    {
                        int top = Int32.Parse(vals[1]);
                        this.Top = top;
                    }
                    else if (s.StartsWith("DXcluster_left"))
                    {
                        int left = Int32.Parse(vals[1]);
                        this.Left = left;
                    }
                    else if (s.StartsWith("DXcluster_width"))
                    {
                        int width = Int32.Parse(vals[1]);
                        this.Width = width;
                    }
                    else if (s.StartsWith("DXcluster_height"))
                    {
                        int height = Int32.Parse(vals[1]);
                        this.Height = height;
                    }
                    else if (s.StartsWith("Cluster"))
                    {
                        if (val != "")
                        {
                            comboDXCluster.Items.Add(val);
                        }
                    }
                    else if (s.StartsWith("btn1text"))
                    {
                        btnNoDX.Text = vals[1];

                        if (ClusterSetupForm != null)
                        {
                            ClusterSetupForm.txtButton1.Text = vals[1];
                        }
                    }
                    else if (s.StartsWith("btn2text"))
                    {
                        btnShowDX.Text = vals[1];

                        if (ClusterSetupForm != null)
                        {
                            ClusterSetupForm.txtButton2.Text = vals[1];
                        }
                    }
                    else if (s.StartsWith("btn3text"))
                    {
                        btnNoVHF.Text = vals[1];

                        if (ClusterSetupForm != null)
                        {
                            ClusterSetupForm.txtButton3.Text = vals[1];
                        }
                    }
                    else if (s.StartsWith("btn4text"))
                    {
                        btnVHFandUP.Text = vals[1];

                        if (ClusterSetupForm != null)
                        {
                            ClusterSetupForm.txtButton4.Text = vals[1];
                        }
                    }
                    else if (s.StartsWith("btn1cmd"))
                    {
                        CMD1 = vals[1];

                        if (ClusterSetupForm != null)
                        {
                            ClusterSetupForm.btn1cmd.Text = vals[1];
                        }
                    }
                    else if (s.StartsWith("btn2cmd"))
                    {
                        CMD2 = vals[1];

                        if (ClusterSetupForm != null)
                        {
                            ClusterSetupForm.btn2cmd.Text = vals[1];
                        }
                    }
                    else if (s.StartsWith("btn3cmd"))
                    {
                        CMD3 = vals[1];

                        if (ClusterSetupForm != null)
                        {
                            ClusterSetupForm.btn3cmd.Text = vals[1];
                        }
                    }
                    else if (s.StartsWith("btn4cmd"))
                    {
                        CMD4 = vals[1];

                        if (ClusterSetupForm != null)
                        {
                            ClusterSetupForm.btn4cmd.Text = vals[1];
                        }
                    }
                }
            }
            catch (Exception ex)
            {
                Debug.Write(ex.ToString());
            }
        }