예제 #1
0
        public Deposition1POutput(string target_path, string title, string file1, string file2)
        //pictureBox1 = "delta_mm_average.jpg"
        //pictureBox2 = "
        {
            InitializeComponent();
            this.Text    = title;
            target_path_ = target_path;
            AdditionalPicture additional_picture = new AdditionalPicture();

            //show standard outputs
            additional_picture.ShowPicture(pictureBox1, target_path_ + file1);
            additional_picture.ShowPicture(pictureBox2, target_path_ + file2);
        }
        public LMOutput(string target_path, string title, string file1, string file2,
                        StringBuilder sb)
        {
            InitializeComponent();
            this.Text    = title;
            target_path_ = target_path;
            AdditionalPicture additional_picture = new AdditionalPicture();

            //show standard outputs
            additional_picture.ShowPicture(pictureBox1, target_path_ + file1);
            additional_picture.ShowPicture(pictureBox2, target_path_ + file2);
            textBox1.Text       = sb.ToString();
            textBox1.ScrollBars = ScrollBars.Both;
            textBox1.Select(0, 0);
        }
 public TrackBarPictures(string title, string name_first_part_with_path, string name_last_part, int number_of_pattern)
 {
     InitializeComponent();
     this.Text          = title;
     trackBar1.Maximum  = number_of_pattern - 1;
     trackBar1.Minimum  = 0;
     file_name_         = new List <string>();
     additionalPicture_ = new AdditionalPicture();
     for (int i = 0; i < number_of_pattern; i++)
     {
         file_name_.Add(name_first_part_with_path + i + name_last_part);
     }
     additionalPicture_.ShowPicture(pictureBox1, file_name_[0]);
 }
        private void trackBar1_Scroll(object sender, EventArgs e)
        {
            TrackBar trackBar = sender as TrackBar;

            additionalPicture_.ShowPicture(pictureBox1, file_name_[trackBar1.Value]);
        }