Exemple #1
0
 private void OpenFileToolStripMenuItem_Click(object sender, EventArgs e)
 {
     filepath       = FileAssistance.OpenFile();
     FilePath.Text  = filepath;
     Original.Image = Image.FromFile(filepath, true);
     originalimg    = (Bitmap)Original.Image;
 }
 private void openToolStripMenuItem_Click(object sender, EventArgs e)
 {
     try {
         filepath          = FileAssistance.OpenFile();
         skinfilepath.Text = filepath;
         Original.Image    = Image.FromFile(filepath, true);
         originalimg       = (Bitmap)Image.FromFile(filepath, true);
     }
     catch
     {
         MessageBox.Show("请导入文件!");
     }
 }
 private void OpenFileButton_Click(object sender, EventArgs e)
 {
     try
     {
         filepath       = FileAssistance.OpenFile();
         FilePath.Text  = filepath;
         Original.Image = Image.FromFile(filepath, true);
         originalimg    = (Bitmap)Image.FromFile(filepath, true);
     }
     catch
     {
         MessageBox.Show("请导入文件!");
     }
 }