예제 #1
0
 public Form1()
 {
     InitializeComponent();
     LicensesAgreed = new ValueObservable <bool>(false);
     LicensesAgreed.AddObserver(v => { licensesInstallCheck.Checked = v; });
     LicensesAgreed.AddObserver(v => { installButton.Enabled = v; });
 }
        public InstallOptionsUserControl()
        {
            InitializeComponent();

            PathSelected.AddObserver(v => textBox1.Text = v);
            object[] items = ConstStrings.Packs.Select(it => ((object)it)).ToArray();
            checkedListBox1.Items.AddRange(items);

            SetAllWithCheck(true);
        }