Пример #1
0
        private void ToolsPanel_Button_Add_Click(object sender, EventArgs e)
        {
            SetEventForm f = new SetEventForm(this, fileStream);

            f.ShowDialog();

            ReDraw();
        }
Пример #2
0
        private void ScreenshotPanel_Image_Click(object sender, MouseEventArgs e)
        {
            int x = (int)((double)Screen.PrimaryScreen.WorkingArea.Width / ScreenshotPanel_Image.Width * e.Location.X);
            int y = (int)((double)Screen.PrimaryScreen.WorkingArea.Height / ScreenshotPanel_Image.Height * e.Location.Y);

            SetEventForm f = new SetEventForm(this, fileStream, x, y);

            f.ShowDialog();

            ReDraw();
        }