Exemple #1
0
 private void buttonSelectReal_Click(object sender, EventArgs e)
 {
     if (openFileReal.ShowDialog() == DialogResult.OK)
     {
         try
         {
             store.RealImage = new Bitmap(openFileReal.FileName);
             realImage.Image = store.GetCopyOfRealImage();
             realImage.Refresh();
         }
         catch (SecurityException ex)
         {
             MessageBox.Show($"Security error.\n\nError message: {ex.Message}\n\n" +
                             $"Details:\n\n{ex.StackTrace}");
         }
     }
 }
Exemple #2
0
 private void InitializeControls()
 {
     realImage = new RealImage("Изображение", size, store.GetCopyOfRealImage(), CloseSchema);
     schema    = new Schema("Схема", size, store.GetCopyOfSchema(), CloseRealImage, Redraw, realImage.SynchronizePosition);
 }