Exemple #1
0
 public override bool Setup()
 {
     using (SetupDialog setup = new SetupDialog(_data))
     {
         if (setup.ShowDialog() == DialogResult.OK)
         {
             if (setup.IPAddr != null)
             {
                 _data.MinimumIntensity = setup.MinIntensity;
                 _data.Address          = setup.IPAddr;
                 _data.Port             = setup.DataPort;
                 initModule();
                 OpenConnection();
                 return(true);
             }
         }
         return(false);
     }
 }
 public override bool Setup()
 {
     using (SetupDialog setup = new SetupDialog(_data))
     {
         if (setup.ShowDialog() == DialogResult.OK)
         {
             if(setup.IPAddr != null)
             {
                 _data.MinimumIntensity = setup.MinIntensity;
                 _data.Address = setup.IPAddr;
                 _data.Port = setup.DataPort;
                 initModule();
                 OpenConnection();
                 return true;
             }
         }
         return false;
     }
 }