Ejemplo n.º 1
0
        int targetVideoLen; //number of video frames;

        #endregion Fields

        #region Constructors

        /// <summary>
        /// Public Constructor:
        /// Initialize Component
        /// Initialize mainWindow and controller
        /// Set the initial text of FileNameLabel
        /// Initialize Video Preview Component
        /// </summary>
        public ConflictWindow()
        {
            InitializeComponent();

            mainWindow = Program.getMainWindow();
            controller = MainWindow.controller;

            warningLabel.Hide();

            sourceFileNameLabel.Text = "";
            targetFileNameLabel.Text = "";

            targetMd = new MediaDetClass();
            sourceMd = new MediaDetClass();
            sourcePreviewer = new VideoPreview("tmp");
            targetPreviewer = new VideoPreview("tmp");

            successful = false;
        }
Ejemplo n.º 2
0
        /// <summary>
        /// Public Constructor:
        /// Initialize Component inside Main Window
        /// Create directory to store video preview temp files
        /// Initialize controller
        /// Load the jobList,jobNameList,computerList and refresh the jobList
        /// Enabled the shortcut buttons
        /// </summary>
        public MainWindow()
        {
            InitializeComponent();

            if (!Directory.Exists(mainStoragePath))
                Directory.CreateDirectory(mainStoragePath);
            if (!Directory.Exists(storagePath))
                Directory.CreateDirectory(storagePath);
            if (!Directory.Exists(storagePath2))
                Directory.CreateDirectory(storagePath2);

            controller = new Controller();

            controller.loadJobList();
            controller.loadJobNameList();
            controller.loadCompList();

            refreshJobList();

            shortcutEnabled = true;
        }
Ejemplo n.º 3
0
 public SyncStart(Controller ctrl, ConflictWindow cnflct, MainWindow mainWin)
 {
     control = ctrl;
     conflict = cnflct;
     main = mainWin;
 }