Exemplo n.º 1
0
 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();
     }
 }
Exemplo n.º 2
0
 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();
 }