Ejemplo n.º 1
0
        public MainLoader(string CommandLine)
        {
            Cap = new FormCapturer();
            Editor = new FormEditor();
            Bucket = new FormBucket();

            Parse_Parameter(CommandLine);

            SystemIcon = new NotificationControl(Editor, Editor.Icon);

            ToolStripMenuItem item;
            item = new ToolStripMenuItem();
            item.Click += SystemIconMenuBucket_Click;
            item.Text = "Bucket";
            SystemIcon.AddMenuItem(item);

            item = new ToolStripMenuItem();
            item.Click += SystemIconMenuEditor_Click;
            item.Text = "Editor";
            SystemIcon.AddMenuItem(item);

            Editor.Hide();
        }
Ejemplo n.º 2
0
        private void BtCapture_Click(object sender, EventArgs e)
        {
            Capturer = new FormCapturer();

            this.Hide();

            if ( Capturer.ShowDialog() == System.Windows.Forms.DialogResult.OK)
            {
                LoadImage(Capturer.LoadBitmapFromScreen());
            }

            Capturer.Dispose();

            this.Show();
        }