Example #1
0
        private void 新建ToolStripMenuItem_Click(object sender, EventArgs e)
        {
            Whiteboard gif3 = null;

            if (gif3 == null || gif3.IsDisposed)
            {
                gif3 = new Whiteboard();
                IntPtr       handle = Process.GetCurrentProcess().MainWindowHandle;
                NativeWindow win    = NativeWindow.FromHandle(handle);
                gif3.Show();
            }

            gif3.Width   = 200;
            gif3.Height  = 200;
            gif3.Opacity = 1;
            if (gif3.BackgroundImage != null)
            {
                gif3.BackgroundImage = null;
            }

            gif3.BackColor = Color.FromArgb(255, 240, 240, 240);
        }
Example #2
0
        private void  制ToolStripMenuItem_Click(object sender, EventArgs e)
        {
            Properties.Settings.Default.gwidth  = this.Width;
            Properties.Settings.Default.gheight = this.Height;
            Properties.Settings.Default.opacity = this.Opacity;
            if (this.BackgroundImage == null)
            {
                Properties.Settings.Default.color = this.BackColor;
            }
            else
            {
                Properties.Settings.Default.picpath = path;
            }

            Whiteboard gif3 = null;

            if (gif3 == null || gif3.IsDisposed)
            {
                gif3 = new Whiteboard();
                IntPtr       handle = Process.GetCurrentProcess().MainWindowHandle;
                NativeWindow win    = NativeWindow.FromHandle(handle);
                gif3.Show();
            }
        }