="justify">}
}
public void form2_MouseUp (object sender, MouseEventArgs e)
{(form2!=null)
{(form2oose)
{. BackColor=form2.color; .Refresh ();
} (form2oose2)
{. BackColor=form2.color; .Refresh ();
}
}
}
//створення нового поляvoid создатьToolStripMenuItem_Click (object sender, EventArgs e)
{res=MessageBox.Show ( Зберегти зміни у файлі? raquo ;, MyGraphicsEditor ,. YesNo, MessageBoxIcon.Asterisk); (res == DialogResult.Yes)
{s0=saveFileDialog1.FileName; (saveFileDialog1.ShowDialog () == DialogResult.OK)
{s1=saveFileDialog1.FileName; (s0.ToUpper () == s1.ToUpper ())
{= Path.GetDirectoryName (s0) + ($$ ## SS) .png raquo ;;. Image.Save (s0) ;. Image.Dispose () ;. Delete (s1 ) ;. Move (s0, s1) ;. Image=new Bitmap (s1);
}
{. Image.Save (s1);= Image Editor + S1;
}
}
}. ActiveControl=form3.numericUpDown1; (form3.ShowDialog () == DialogResult.OK)
{. FileName= raquo ;;= Image Editor raquo ;; ();
}
} void newbutton_Click (object sender, EventArgs e)
{= new NewForm () ;. Show () ;. Activate ();
}
public void откритьToolStripMenuItem_Click (object sender, EventArgs e)
{res=MessageBox.Show ( Зберегти зміни у файлі? raquo ;, MyGraphicsEditor ,. YesNo, MessageBoxIcon.Asterisk); (res == DialogResult.Yes)
{s0=saveFileDialog1.FileName; (saveFileDialog1.ShowDialog () == DialogResult.OK)
{s1=saveFileDialog1.FileName; (s0.ToUpper () == s1.ToUpper ())
{= Path.GetDirectoryName (s0) + ($$ ## SS) .png raquo ;;. Image.Save (s0) ;. Image.Dispose () ;. Delete (s1 ) ;. Move (s0, s1) ;. Image=new Bitmap (s1);
}
{. Image.Save (s1);= Image Editor + S1;
}
}
}=nullPoint; (openFileDialog1.ShowDialog () == DialogResult.OK)
{s=openFileDialog1.FileName;
{image=new Bitmap (s); g=Graphics.FromImage (image) ;. Dispose (); (pictureBox1.Image!=null) .Image.Dispose () ;. Image=image ; ();//відміна дії
} (Exception)
{. Show ( The file has the wrong format + s, Error ) ;;
}= Image Editor + S; .FileName=Path.ChangeExtension (s, png ) ;. FileName= raquo ;;
}
}
private void openbutton_Click (object sender, EventArgs e)
{
}
private void savebutton_Click (object sender, EventArgs e)
{
}
private void сохранітьToolStripMenuItem_Click (object sender, EventArgs e)
{= nullPoint; s0=saveFileDialog1.FileName; (saveFileDialog1.ShowDialog () == DialogResult.OK)
{s1=saveFileDialog1.FileName; (s0.ToUpper () == s1.ToUpper ())
{= Path.GetDirectoryName (s0) + ($$ ## SS) .png raquo ;;. Image.Save (s0) ;. Image.Dispose () ;. Delete (s1 ) ;. Move (s0, s1) ;. Image=new Bitmap (s1);
}
{. Image.Save (s1);= Image Editor + S1;
}
}
} void deletebutton_Click (object sender, EventArgs e)
{(MessageBox.Show ( Очистити малюнок? raquo ;, Очищення raquo ;, MessageBoxButtons.YesNo, MessageBoxIcon.Question)
== DialogResult.Yes)
{();//відміна действіяg=Graphics.FromImage (pictureBox1.Image) ;. Clear (Color.White);
//ізменітьЦветФонаToolStripMenuItem.BackColor=Color.White; .Invalidate ();
}
}
private void button7_Click (object sender, EventArgs e)
{
}
//задаємо шріфтvoid Fontbutton_Click (object sender, EventArgs e)
{. Font=font; (fontDialog1.ShowDialog () == DialogResult.OK)
{f=font; .Font=font=fontDialog1.Font; (font.Bold == true)
{. Checked=true;
}
{. Ch...