public RadiancePreview(CondorSubmitGUI MainForm) { MainParent = MainForm; InitializeComponent(); this.Location = new System.Drawing.Point(MainParent.Location.X + MainParent.Width, 0); //events to update the image on settings changed MainParent.RadianceRNUD.ValueChanged += new System.EventHandler(this.Radiance_ValueChanged); MainParent.RadianceGNUD.ValueChanged += new System.EventHandler(this.Radiance_ValueChanged); MainParent.RadianceBNUD.ValueChanged += new System.EventHandler(this.Radiance_ValueChanged); MainParent.RadianceANUD.ValueChanged += new System.EventHandler(this.Radiance_ValueChanged); MainParent.RadianceSharpenCheckbox.CheckedChanged += new System.EventHandler(this.Radiance_ValueChanged); MainParent.RadianceRadiusTB.TextChanged += new System.EventHandler(this.Radiance_ValueChanged); MainParent.RadianceSigmaTB.TextChanged += new System.EventHandler(this.Radiance_ValueChanged); MainParent.RadianceContrastTB.TextChanged += new System.EventHandler(this.Radiance_ValueChanged); MainParent.RadianceBrightTB.TextChanged += new System.EventHandler(this.Radiance_ValueChanged); MainParent.RadiancePreviewCheckbox.CheckedChanged += new System.EventHandler(this.Radiance_CheckboxChanged); MainParent.RadianceNextButton.Click += new System.EventHandler(this.Radiance_ChangeImage); MainParent.RadiancePrevButton.Click += new System.EventHandler(this.Radiance_ChangeImage); bmp = new Bitmap(pictureBox1.Width, pictureBox1.Height); //create required directories Directory.CreateDirectory(@"C:\temp\channels\red"); Directory.CreateDirectory(@"C:\temp\channels\green"); Directory.CreateDirectory(@"C:\temp\channels\blue"); Directory.CreateDirectory(@"C:\temp\channels\alpha"); Directory.CreateDirectory(@"C:\temp\channels\dodged\red"); Directory.CreateDirectory(@"C:\temp\channels\dodged\green"); Directory.CreateDirectory(@"C:\temp\channels\dodged\blue"); Directory.CreateDirectory(@"C:\temp\channels\dodged\alpha"); Directory.CreateDirectory(@"C:\temp\dodged\merged"); Directory.CreateDirectory(@"C:\temp\sharpened"); //open the first applicable image in the folder currentImage = 0; string tiffname = Directory.GetFiles(MainParent.RadianceInputTB.Text, "*.tif")[currentImage]; while (Directory.GetFiles(MainParent.RadianceInputTB.Text, Path.GetFileNameWithoutExtension(tiffname + ".tfw")).Length < 1) { currentImage++; tiffname = Directory.GetFiles(MainParent.RadianceInputTB.Text, "*.tif")[currentImage]; } LoadTiff(tiffname); }
public PriorityWarning(CondorSubmitGUI MainForm) { this.MainForm = MainForm; InitializeComponent(); this.warningLabel.Text = "You are currently submitting a large amount of jobs with\nthe highest priority. This will effectively lock out any\nsmall jobs that need to be run quickly for a long period\nof time until your jobs are finished.\n\n What would you like to do?"; }
public EditImagePaths(CondorSubmitGUI MainForm) { MainParent = MainForm; InitializeComponent(); }