コード例 #1
0
ファイル: FormMain.cs プロジェクト: ennerperez/image-toolkit
 private void toolStripButtonToB64_Click(object sender, EventArgs e)
 {
     if (bufferedPanelPreview.BackgroundImage != null)
     {
         FormB64Editor editor = new FormB64Editor(FormB64Editor.Mode.Save);
         editor.StartPosition = FormStartPosition.Manual;
         editor.Height = this.Height;
         editor.Location = new Point(this.Location.X + this.Width, this.Location.Y);
         editor.Image = bufferedPanelPreview.BackgroundImage;
         editor.Show();
     }
 }
コード例 #2
0
ファイル: FormMain.cs プロジェクト: ennerperez/image-toolkit
 private void toolStripButtonFromB64_Click(object sender, EventArgs e)
 {
     FormB64Editor editor = new FormB64Editor(FormB64Editor.Mode.Open);
     editor.StartPosition = FormStartPosition.Manual;
     editor.Height = this.Height;
     editor.Location = new Point(this.Location.X + this.Width, this.Location.Y);
     editor.Process += (object s, EventArgs v) => bufferedPanelPreview.BackgroundImage = editor.Image;
     editor.Show();
 }