Example #1
0
        private void PostInitialize()
        {
            this.topLeft.MainForm                       = this;
            this.topRight.MainForm                      = this;
            this.bottomLeft.MainForm                    = this;
            this.bottomRight.MainForm                   = this;
            this.toolStripPenWidth.SelectedIndex        = 0;
            this.toolStripComboBoxSeconds.SelectedIndex = 0;
            this.currentLayout           = LayoutType.TwoVerticalPictures;
            this.currentView             = this.topLeft;
            this.currentView.BorderStyle = BorderStyle.None;
            this.currentView.Padding     = new Padding(2);
            this.chooseLayoutToolStripComboBox.Items.AddRange(new string[] {
                "One Picture ",
                "Two Horizontal Splited Pictures",
                "Two Vertical Splited  Pictures",
                "Four Pictures"
            });
            this.toolStripPenWidth.SelectedIndex = 2;
            this.BrushSize = 3;
            this.chooseLayoutToolStripComboBox.SelectedIndex = 2;
            this.PositionViews();

            string path = DriveInfo.GetDrives().First(x => x.DriveType == DriveType.Fixed).Name;

            if (string.IsNullOrEmpty(Settings.Default.ExportPath))
            {
                Settings.Default.ExportPath = Path.Combine(path, "export");
            }
            if (string.IsNullOrEmpty(Settings.Default.PublishPath))
            {
                Settings.Default.PublishPath = Path.Combine(path, "publish");
            }
        }
Example #2
0
 internal void CurrentViewChanged(PictureView pictureView)
 {
     if (this.currentView != pictureView)
     {
         if (this.timer != null)
         {
             this.timer.Stop();
         }
         this.currentView.DisableSelecting();
         this.currentView.RepaintPicture();
         this.currentView.BorderStyle = BorderStyle.Fixed3D;
         this.currentView.Padding     = new Padding(0);
         this.currentView             = pictureView;
         this.currentView.BorderStyle = BorderStyle.None;
         this.currentView.Padding     = new Padding(2);
         this.RefreshGui();
     }
 }
Example #3
0
 private void PositionViews()
 {
     this.toolStripButtonSelect.Checked = false;
     this.toolStripButtonRuler.Checked  = false;
     this.layoutPanel.Controls.Clear();
     this.layoutPanel.Invalidate();
     this.topLeft                 = new PictureView();
     this.topLeft.MainForm        = this;
     this.topRight                = new PictureView();
     this.topRight.MainForm       = this;
     this.bottomLeft              = new PictureView();
     this.bottomLeft.MainForm     = this;
     this.bottomRight             = new PictureView();
     this.bottomRight.MainForm    = this;
     this.currentView             = this.topLeft;
     this.currentView.BorderStyle = BorderStyle.None;
     this.currentView.Padding     = new Padding(2);
     DoReposition();
     this.layoutPanel.Invalidate();
 }