示例#1
0
 private void 撮り直しRToolStripMenuItem_Click(object sender, EventArgs e)
 {
     if (thumbNailView.SelectedItems.Count <= 0) return;
     var targetName = thumbNailView.SelectedItems[0].Text;
     var imageName = new BlackForm().takeScreenshot(this);
     var bmp = DeleteScreenshot(imageName);
     if (bmp == null) return;
     AddScreenshot(targetName, bmp);
     textBox.Refresh();
 }
示例#2
0
        private void cmdButton_Click(object sender, EventArgs e)
        {
            var text = ((Button)sender).Text;

            if (autoChapCheckBox.Checked)
            {
                var res = new System.Text.RegularExpressions.Regex(@"(image\d*)").Matches(text);
                foreach (System.Text.RegularExpressions.Match m in res)
                {
                    var imageName = new BlackForm().takeScreenshot(this);
                    if (imageName == "") return;
                    text = text.Replace(m.Value, String.Format("\"{0}\"", imageName));
                }
            }

            textBox.Document.Replace(text + "\n");
        }
示例#3
0
 private void screenshotButton_Click(object sender, EventArgs e)
 {
     blackForm = new BlackForm();
     blackForm.takeScreenshot(this);
 }