コード例 #1
0
 private void dmasterOption_Click(object sender, EventArgs e)
 {
     Classes.gs_datatypes GSD = new gs_datatypes();
     adOption.BackColor      = Color.DarkSlateGray;
     GSD.adOption            = false;
     dmasterOption.BackColor = Color.Green;
     GSD.dmMasterOption      = true;
     detectBtn.Enabled       = true;
     detectBtn.Show();
     detectBtn.Visible = true;
     checkApply();
 }
コード例 #2
0
 public void checkApply()
 {
     Classes.gs_datatypes GSD = new gs_datatypes();
     if (!String.IsNullOrEmpty(ipv4Txt.Text) && !String.IsNullOrEmpty(portTxt.Text))
     {
         if (dmasterOption.BackColor == Color.Green || adOption.BackColor == Color.Green)
         {
             if (ipv4Txt.BackColor == Color.Red || ipv4Txt.BackColor == Color.White)
             {
             }
             applyBtn.Show();
             applyBtn.Visible = true;
         }
     }
 }
コード例 #3
0
 private void adOption_Click(object sender, EventArgs e)
 {
     Classes.gs_datatypes GSD = new gs_datatypes();
     dmasterOption.BackColor = Color.DarkSlateGray;
     GSD.dmMasterOption      = false;
     adOption.BackColor      = Color.Green;
     GSD.adOption            = true;
     detectBtn.Enabled       = false;
     detectBtn.Hide();
     detectBtn.Visible = false;
     if (!detectBtn.Visible)
     {
         ipv4Txt.Text = string.Empty;
     }
     checkApply();
 }