Esempio n. 1
0
        private void MainForm_Load(object sender, System.EventArgs e)
        {
            //tray
            Resize                += MainForm_Resize;
            Disposed              += MainForm_Disposed;
            tray.Visible           = true;
            tray.BalloonTipTitle   = Text;
            tray.Icon              = System.Drawing.SystemIcons.Information;
            tray.MouseDoubleClick += Tray_MouseDoubleClick;

            SetupDataGrid(ListDataGrid1);
            SetupDataGrid(ListDataGrid2);

            manager = new ClipboardManager();
            CompareItemsList list1 = new CompareItemsList(ListDataGrid1);
            CompareItemsList list2 = new CompareItemsList(ListDataGrid2);

            list2.SetNext(list1);
            manager.SetList(list2);

            // Load settings
            config = new AppSettings();

            // Add checkbox
            CheckBox checkBoxTopMost = new CheckBox();

            checkBoxTopMost.DataBindings.Add(new Binding("Checked", config, "StayOnTop"));
            checkBoxTopMost.Text = "Stay on top";
            checkBoxTopMost.CheckStateChanged += checkBoxTopMost_CheckStateChanged;
            checkBoxTopMost.BackColor          = Color.Transparent;

            ToolStripControlHost controlHost = new ToolStripControlHost(checkBoxTopMost);

            controlHost.Alignment = ToolStripItemAlignment.Right;
            StripTools.Items.Add(controlHost);
        }
Esempio n. 2
0
 public void SetNext(CompareItemsList list)
 {
     next = list;
 }
Esempio n. 3
0
 public void SetList(CompareItemsList list)
 {
     this.list = list;
 }