Esempio n. 1
0
        public MainForm()
        {
            //
            // Required for Windows Form Designer support
            //
            InitializeComponent();
            //to avoid flickering FIXME :<
            SetStyle(ControlStyles.UserPaint, true);
            SetStyle(ControlStyles.AllPaintingInWmPaint, true);
            SetStyle(ControlStyles.DoubleBuffer, true);

            addressTextBox.Text = Dns.GetHostEntry(Dns.GetHostName()).AddressList[0].ToString();
            driversList = new BindingList<IRobotDriver>();
            BindingSource bindingDrivers = new BindingSource();
               // bindingDrivers.DataSource = driversList;
              //  driversListBox.DataSource = bindingDrivers;
            driversListBox.DisplayMember = "Name";

            sLog = new SimpleLog();
            controls = new ControlForm(this);
        }
Esempio n. 2
0
 public ControlForm(MainForm mf)
     : this()
 {
     mainForm = mf;
     sLog = mainForm.sLog;
 }