Example #1
0
        public void InitiatlizeFormInterface(PictureBox statusIndicator, TreeView onlineTree, TreeView localTree, Button syncButton, ConfigInterface configInterface)
        {
            _statusIndicator = statusIndicator;
            _offlineTree     = localTree;
            _onlineTree      = onlineTree;

            _syncButton      = syncButton;
            _configInterface = configInterface;

            SetLight();
        }
Example #2
0
        public ConfigMenu()
        {
            InitializeComponent();

            #region Formatting day picker
            dateTimePicker1.Format       = DateTimePickerFormat.Custom;
            dateTimePicker1.CustomFormat = "HH:mm"; // Only use hours and minutes
            dateTimePicker1.ShowUpDown   = true;

            #endregion

            //todo add check connection every 2 3 5 min ?

            configInter = new ConfigInterface(
                dateTimePicker1, okButton, this, checkBox3, checkBox4, checkBox5, checkBox6, checkBox7, checkBox8, checkBox9);
        }