Пример #1
0
    // Set up the game on Start(); this should happen before all other Start()s
    void Start()
    {
        // We need to keep one instance of our Game Manager
        if (_instance != null)
        {
            Destroy(_instance.gameObject);
        }
        else
        {
            _gameSaveStatePath    = Path.Combine(Application.persistentDataPath, "game_progress.xml");
            _levelSaveStatePrefix = Path.Combine(Application.persistentDataPath, "level_");
        }
        _instance         = this;
        _mainCamera       = GetComponentInChildren <CameraScrollingMain>();
        _audioManager     = GetComponentInChildren <AudioManager>();
        _subtitlesManager = GetComponentInChildren <SubtitlesManager>();

        SetupLevel();

        SetupAI();

        SetupObjectPool();

        SetupInventory();

        SetupUI();

        SetupPlayer();
    }
Пример #2
0
        /// <summary>
        /// Konstruktor.
        /// </summary>
        /// <param name="viewManager">Obiekt menadżera widoków.</param>
        /// <param name="view">Obiekt zarządzanego przez prezentera widoku.</param>
        /// <param name="subtitlesManager"></param>
        public OpenFilePresenter(IViewManager viewManager, IOpenFileView view, SubtitlesManager subtitlesManager)
            : base(viewManager, view)
        {
            this.subtitlesManager = subtitlesManager;

            this.View.Filter        = GetFileFilters();
            this.View.DialogClosed += new EventHandler <KWinFramework.Views.WinForms.Dialogs.DialogClosedEventArgs>(DialogClosedHandler);
        }
Пример #3
0
        /// <summary>
        /// Konstruktor.
        /// </summary>
        /// <param name="manager">Menadżer napisów.</param>
        /// <param name="editor">Edytor napisów</param>
        /// <param name="strategyRepository"></param>
        public EditToolBase(SubtitlesManager manager, SubtitlesEditor editor, StrategyForFormatRepository strategyRepository)
        {
            this.StrategyRepository = new StrategyForFormatRepository();

            this.Manager = manager;
            this.Manager.CurrentSubtitlesChanged += new EventHandler <SubtitlesChangedEventArgs>(CurrentSubtitlesChangedHandler);

            this.Editor = editor;
        }
Пример #4
0
        /// <summary>
        /// Konstruktor.
        /// </summary>
        /// <param name="viewManager">Obiekt menadżera widoków.</param>
        /// <param name="view">Obiekt zarządzanego przez prezentera widoku.</param>
        /// <param name="subtitlesManager">Obiekt menadżera zarządzającego obiektami reprezentującymi napisy.</param>
        /// <param name="editor">Obiekt menadżera zajmującego się edycjią napisów.</param>
        /// <param name="tool">Obiekt narzędzia odpowiadającego za synchronizację napisów.</param>
        public SynchronizationCommandPresenter(IViewManager viewManager, ICommandView view, SubtitlesManager subtitlesManager, SynchronizationTool tool)
            : base(viewManager, view)
        {
            this.subtitlesManager = subtitlesManager;

            this.tool = tool;

            this.View.IsExecutable = true;
        }
Пример #5
0
        /// <summary>
        /// Konstruktor.
        /// </summary>
        /// <param name="viewManager">Obiekt menadżera widoków.</param>
        /// <param name="view">Obiekt zarządzanego przez prezentera widoku.</param>
        /// <param name="subtitlesManager">Obiekt menadżera zarządzającego obiektami reprezentującymi napisy.</param>
        /// <param name="cancellationToken">
        /// Obiekt przechowujący informację o anulowaniu zamykania widoku.
        /// Wykorzystywany jeśli prezenter zapisu jest używany przy pytaniu o zapisanie zmian przed zamknięciem aplikacji,
        /// by móc anulować zmykanie w przypadku anuloawania zapisu
        /// </param>
        public SaveFilePresenter(IViewManager viewManager, ISaveFileView view, SubtitlesManager subtitlesManager, ViewCloseCancellationToken cancellationToken)
            : base(viewManager, view)
        {
            this.subtitlesManager = subtitlesManager;

            this.View.Filter        = GetFileFilters();
            this.View.DialogClosed += new EventHandler <KWinFramework.Views.WinForms.Dialogs.DialogClosedEventArgs>(DialogClosedHandler);

            this.cancellationToken = cancellationToken;
        }
Пример #6
0
        /// <summary>
        /// Konstruktor.
        /// </summary>
        /// <param name="viewManager">Obiekt menadżera widoków.</param>
        /// <param name="view">Obiekt zarządzanego przez prezentera widoku.</param>
        /// <param name="subtitlesManager">Menadżer napisów.</param>
        public EncodingComboBoxPresenter(IViewManager viewManager, IToolStripComboBoxView view, SubtitlesManager subtitlesManager)
            : base(viewManager, view)
        {
            this.subtitlesManager = subtitlesManager;

            this.View.SelectedValueChanged += new EventHandler(ViewSelectedValueChangedHandler);
            var encodingList = EncodingDisplayNameMap.GetAllNames();

            this.View.Values        = encodingList;
            this.View.SelectedValue = encodingList.First();
        }
Пример #7
0
 void Awake()
 {
     if (instance == null)
     {
         instance = this;
     }
     else
     {
         Destroy(this);
     }
 }
Пример #8
0
        /// <summary>
        /// Konstruktor.
        /// </summary>
        /// <param name="viewManager">Obiekt menadżera widoków.</param>
        /// <param name="view">Obiekt zarządzanego przez prezentera widoku.</param>
        /// <param name="subtitlesManager">Obiekt menadżera napsiów.</param>
        /// <param name="cancelatlionToken">Obiekt informacji o anulowaniu zamykania widoku.</param>
        public SaveBeforeClosePresenter(
            IViewManager viewManager,
            ISaveBeforeCloseView view,
            SubtitlesManager subtitlesManager,
            ViewCloseCancellationToken cancelatlionToken)
            : base(viewManager, view)
        {
            this.subtitlesManager = subtitlesManager;

            this.View.Save      += new EventHandler(SaveHandler);
            this.View.DoNotSave += new EventHandler(DoNotSaveHandler);
            this.View.Cancel    += new EventHandler(CancelHandler);

            this.cancellationToken = cancelatlionToken;
        }
Пример #9
0
        /// <summary>
        /// Konstruktor.
        /// </summary>
        /// <param name="viewManager">Obiekt menadżera widoków.</param>
        /// <param name="view">Obiekt zarządzanego przez prezentera widoku.</param>
        /// <param name="appManager">Obiekt menadżera aplikacji.</param>
        /// <param name="subtitlesManager">Menadżer obiektów reprezentujących napisy.</param>
        public MainFormPresenter(IViewManager viewManager, IMainFormView view, ApplicationManager appManager, SubtitlesManager subtitlesManager)
            : base(viewManager, view)
        {
            this.applicationManager = appManager;

            this.subtitlesManager = subtitlesManager;
            this.subtitlesManager.CurrentSubtitlesChanged += new EventHandler <SubtitlesChangedEventArgs>(CurrentSubtitlesChangedHandler);

            this.currentSubtitles              = subtitlesManager.CurrentSubtitles;
            this.currentSubtitles.NameChanged += new EventHandler <EventArgs <String> >(CurrentSubtitlesNameChangedHandler);

            this.View.ShowRequest     += new EventHandler(ViewShowRequestHandler);
            this.View.CloseRequest    += new EventHandler(ViewCloseRequestHandler);
            this.View.PreCloseRequest += new EventHandler <ViewPreCloseEventArgs>(ViewPreCloseRequestHandler);
        }
Пример #10
0
        /// <summary>
        /// Konstruktor.
        /// </summary>
        /// <param name="viewManager">Obiekt menadżera widoków.</param>
        /// <param name="view">Obiekt zarządzanego przez prezentera widoku.</param>
        /// <param name="subtitlesManager">Obiekt menadżera zarządzającego obiektami reprezentującymi napisy.</param>
        /// <param name="editor">Obiekt menadżera zajmującego się edycjią napisów.</param>
        /// <param name="tool">OBiekt narzędzia służącego do dostosowywania timingów.</param>
        public TimingAdjustmentCommandPresenter(
            IViewManager viewManager,
            ICommandView view,
            SubtitlesManager subtitlesManager,
            SubtitlesEditor editor,
            TimingAdjustmentTool tool)
            : base(viewManager, view)
        {
            this.manager = subtitlesManager;

            this.editor = editor;

            this.tool = tool;

            this.View.IsExecutable = true;
        }
Пример #11
0
        /// <summary>
        /// Konstruktor.
        /// </summary>
        /// <param name="viewManager">Obiekt menadżera widoków.</param>
        /// <param name="view">Obiekt zarządzanego przez prezentera widoku.</param>
        /// <param name="subtitlesManager">Obiekt modelu menadżera plików.</param>
        /// <param name="tool">Obiekt narzędzia do synchronizacji napisów.</param>
        public SynchronizationToolPresenter(IViewManager viewManager, ISynchronizationToolView view, SubtitlesManager subtitlesManager, SynchronizationTool tool)
            : base(viewManager, view)
        {
            this.subtitlesManager = subtitlesManager;
            this.subtitlesManager.CurrentSubtitlesFormatChanged += new EventHandler(CurrentSubtitlesFormatChangedHandler);

            this.tool = tool;

            this.View.CanSynchronize = false;
            this.View.CanAdd         = true;
            this.View.CanDelete      = false;
            this.View.CanChange      = false;
            this.View.Synchronize   += new EventHandler(SynchronizeHandler);
            this.View.Add           += new EventHandler(AddHandler);
            this.View.Delete        += new EventHandler(DeleteHandler);
            this.View.Change        += new EventHandler(ChangeHandler);
            this.View.SelectedSynchronizationPointChanged += new EventHandler <EventArgs <int> >(SelectedTimingChangedHandler);
            this.View.SwitchTimingToTime();
            this.SetViewTimingMode();
        }
Пример #12
0
        /// <summary>
        /// Konstruktor.
        /// </summary>
        /// <param name="viewManager">Obiekt menadżera widoków.</param>
        /// <param name="view">Obiekt zarządzanego przez prezentera widoku.</param>
        /// <param name="subtitlesManager">Obiekt modelu menadżera plików.</param>
        /// <param name="subtitlesEditor">Edytor napisów.</param>
        public SubtitlesPresenter(IViewManager viewManager, ISubtitlesView view, SubtitlesManager subtitlesManager, SubtitlesEditor subtitlesEditor)
            : base(viewManager, view)
        {
            this.manager = subtitlesManager;
            this.manager.CurrentSubtitlesChanged += new EventHandler <SubtitlesChangedEventArgs>(CurrentSubtitlesChangedHandler);

            this.subtitles = subtitlesManager.CurrentSubtitles;
            this.subtitles.ContentChanged += new EventHandler <SubtitlesContentChangedEventArgs>(SubtitlesContentChangedHandler);

            this.View.Content           = this.subtitles.Content;
            this.View.SelectionChanged += new EventHandler <SelectionChangedEventArgs>(ViewSelectionChangedHandler);
            this.View.ContentChanged   += new EventHandler(ViewContentChangedHandler);
            this.View.Scrolled         += new EventHandler <ScrolledEventArgs>(ViewScrolledHandler);

            this.editor = subtitlesEditor;
            this.editor.EditStateChanged += new EventHandler <SubtitlesEditStateChangedEventArgs>(EditorEditStateChangedHandler);

            this.composer = new ModificationComposer();

            this.previousLineNumberingDigits = 1;
        }
Пример #13
0
        /// <summary>
        /// Konstruktor.
        /// </summary>
        /// <param name="viewManager">Obiekt menadżera widoków.</param>
        /// <param name="view">Obiekt zarządzanego przez prezentera widoku.</param>
        /// <param name="subtitlesManager">Obiekt modelu menadżera plików.</param>
        /// <param name="editor">Edytor napisów.</param>
        /// <param name="tool">Obiekt narzędzia do dostosowywania napisów.</param>
        public TimingAdjustmentToolPresenter(
            IViewManager viewManager,
            ITimingAdjustmentToolView view,
            SubtitlesManager subtitlesManager,
            SubtitlesEditor editor,
            TimingAdjustmentTool tool)
            : base(viewManager, view)
        {
            this.manager = subtitlesManager;
            this.manager.CurrentSubtitlesFormatChanged += new EventHandler(CurrentSubtitlesFormatChangedHandler);

            this.editor = editor;

            this.tool = tool;

            this.View.Add                 += new EventHandler(AddHandler);
            this.View.Substract           += new EventHandler(SubstractHandler);
            this.View.ApplyToRangeChanged += new EventHandler <EventArgs <bool> >(ApplyToRangeChangedHandler);
            this.View.UseFromRangeChanged += new EventHandler <EventArgs <bool> >(UseFromRangeChangedHandler);
            this.View.UseToRangeChanged   += new EventHandler <EventArgs <bool> >(UseToRangeChangedHandler);
            this.SetViewRangeControlsEnabled(false);
            this.InitializeViewApplyTo();
            this.SetViewTimingMode();
        }
Пример #14
0
 /// <summary>
 /// Konstruktor.
 /// </summary>
 /// <param name="viewManager">Obiekt menadżera widoków.</param>
 /// <param name="view">Obiekt zarządzanego przez prezentera widoku.</param>
 /// <param name="subtitlesManager">Obiekt menadżera zarządzającego obiektami reprezentującymi napisy.</param>
 public OpenFileCommandPresenter(IViewManager viewManager, ICommandView view, SubtitlesManager subtitlesManager)
     : base(viewManager, view)
 {
     this.subtitlesManager = subtitlesManager;
 }
Пример #15
0
 /// <summary>
 /// Konstruktor.
 /// </summary>
 /// <param name="viewManager">Obiekt menadżera widoków.</param>
 /// <param name="view">Obiekt widoku zarządzanego przez prezentera.</param>
 /// <param name="subtitlesManager">Obiekt modelu menadżera plików.</param>
 /// <param name="commandFacade"></param>
 public ToolbarPresenter(IViewManager viewManager, IToolbarView view, SubtitlesManager subtitlesManager, CommandFacade commandFacade)
     : base(viewManager, view)
 {
     this.subtitlesManager = subtitlesManager;
     this.commandFacade    = commandFacade;
 }
Пример #16
0
 public SubtitlesController(ItemManager itemManager, SubtitlesManager subtitlesManager)
 {
     ItemManager      = itemManager;
     SubtitlesManager = subtitlesManager;
 }
Пример #17
0
 /// <summary>
 /// Konstruktor.
 /// </summary>
 /// <param name="manager">Menadżer napisów.</param>
 /// <param name="editor">Edytor napisów</param>
 /// <param name="strategyRepository">Obiekt repozytorium strategi.</param>
 public TimingAdjustmentTool(SubtitlesManager manager, SubtitlesEditor editor, StrategyForFormatRepository strategyRepository)
     : base(manager, editor, strategyRepository)
 {
 }
Пример #18
0
 /// <summary>
 /// Konstruktor.
 /// </summary>
 /// <param name="manager">Menadżer napisów.</param>
 /// <param name="editor">Edytor napisów</param>
 public EditToolBase(SubtitlesManager manager, SubtitlesEditor editor)
     : this(manager, editor, new StrategyForFormatRepository())
 {
     this.InitialzieStrategyRepository();
 }
Пример #19
0
 public SaveFileCommand(SubtitlesManager subtitlesManager)
 {
     this.subtitlesManager = subtitlesManager;
 }
Пример #20
0
 /// <summary>
 /// Konstruktor.
 /// </summary>
 /// <param name="manager">Menadżer napisów.</param>
 /// <param name="editor">Edytor napisów</param>
 public TimingAdjustmentTool(SubtitlesManager manager, SubtitlesEditor editor)
     : base(manager, editor)
 {
 }
Пример #21
0
        static void Main()
        {
#if DEBUG
            System.Threading.Thread.CurrentThread.CurrentUICulture = new System.Globalization.CultureInfo("en-US");
#endif

            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);

            IViewManager viewManager = new WinFormsViewManager();

            SubtitlesManager subtitlesManager = new SubtitlesManager();

            //Określenie obsługiwanych formatów przed wczytaniem pliku.
            subtitlesManager.AddSupportedSubtitles(new AssFileFormat());
            subtitlesManager.AddSupportedSubtitles(new SSAFileFormat());
            subtitlesManager.AddSupportedSubtitles(new SubripFileFormat());
            subtitlesManager.AddSupportedSubtitles(new MicroDVDFileFormat());
            subtitlesManager.AddSupportedSubtitles(new TMPlayerFileFormat());

            MainFormView mainFormView = new MainFormView(Subeditor.Properties.Resources.NameMainView);
            viewManager.AddView(mainFormView);

            ApplicationManager appManager        = new ApplicationManager(viewManager);
            MainFormPresenter  mainFormPresenter = new MainFormPresenter(viewManager, mainFormView, appManager, subtitlesManager);

            UndoRedoManager undoRedoManager = new UndoRedoManager();

            ClipboardAssistant assistant = new ClipboardAssistant();
            mainFormView.ClipboardChanged += assistant.OnClipboardChanged;

            SubtitlesEditor editor = new SubtitlesEditor(subtitlesManager, undoRedoManager);
            (editor.Clipboard as SubtitlesClipboard).ClipboardAssistant = assistant;

            //<--------------------------------------------------------------Tools-------------------------------------------------------------->

            TimingAdjustmentTool timingAdjustmentTool = new TimingAdjustmentTool(subtitlesManager, editor);
            SynchronizationTool  synchronizationTool  = new SynchronizationTool(subtitlesManager, editor);

            //<-------------------------------------------------------SubtitlesPresenter-------------------------------------------------------->

            ISubtitlesView     subtitlesFileView      = (ISubtitlesView)viewManager.GetView("SubtitlesView");
            SubtitlesPresenter subtitlesFilePresenter = new SubtitlesPresenter(viewManager, subtitlesFileView, subtitlesManager, editor);

            //<-------------------------------------------------------Menu File Commands-------------------------------------------------------->

            ICommandView             openFileCmdView      = (ICommandView)viewManager.GetView("MenuOpenView");
            OpenFileCommandPresenter openFileCmdPresenter = new OpenFileCommandPresenter(viewManager, openFileCmdView, subtitlesManager);

            ICommandView             saveFileCmdView          = (ICommandView)viewManager.GetView("MenuSaveView");
            SaveFileCommandPresenter saveFileCommandPResenter = new SaveFileCommandPresenter(viewManager, saveFileCmdView, subtitlesManager);

            ICommandView saveAsFileCmddView = (ICommandView)viewManager.GetView("MenuSaveAsView");
            SaveAsFileCommandPresenter saveAsFileCmdPResenter = new SaveAsFileCommandPresenter(viewManager, saveAsFileCmddView, subtitlesManager);

            ICommandView         exitCmdView      = (ICommandView)viewManager.GetView("MenuExitView");
            ExitCommandPresenter exitCmdPresenter = new ExitCommandPresenter(viewManager, exitCmdView, appManager);

            //<--------------------------------------------------------------------------------------------------------------------------------->

            //<-------------------------------------------------------Menu Edit Commands-------------------------------------------------------->

            ICommandView        cutCmdView      = (ICommandView)viewManager.GetView("MenuCutView");
            CutCommandPresenter cutCmdPresenter = new CutCommandPresenter(viewManager, cutCmdView, editor);

            ICommandView         copyCmdView      = (ICommandView)viewManager.GetView("MenuCopyView");
            CopyCommandPresenter copyCmdPresenter = new CopyCommandPresenter(viewManager, copyCmdView, editor);

            ICommandView          pasteCmdView      = (ICommandView)viewManager.GetView("MenuPasteView");
            PasteCommandPresenter pasteCmdPresenter = new PasteCommandPresenter(viewManager, pasteCmdView, editor);

            ICommandView selectAllCmdView = (ICommandView)viewManager.GetView("MenuSelectAllView");
            SelectAllCommandPresenter selectAllCmdPresenter = new SelectAllCommandPresenter(viewManager, selectAllCmdView, editor);

            ICommandView selectFromCmdView = (ICommandView)viewManager.GetView("MenuSelectFromView");
            SelectFromCommandPresenter selectFromCmdPresenter = new SelectFromCommandPresenter(viewManager, selectFromCmdView, editor);

            ICommandView         menuUndoCmdView      = (ICommandView)viewManager.GetView("MenuUndoView");
            UndoCommandPresenter menuUndoCmdPresenter = new UndoCommandPresenter(viewManager, menuUndoCmdView, undoRedoManager);

            ICommandView         menuRedoCmdView      = (ICommandView)viewManager.GetView("MenuRedoView");
            RedoCommandPresenter menuRedoCmdPresenter = new RedoCommandPresenter(viewManager, menuRedoCmdView, undoRedoManager);

            //<--------------------------------------------------------------------------------------------------------------------------------->

            //<-------------------------------------------------------Menu Tools Commands------------------------------------------------------->

            ICommandView adjustTimingCmdView = (ICommandView)viewManager.GetView("MenuTimingAdjustmentView");
            TimingAdjustmentCommandPresenter adjustTimingCmdPresenter = new TimingAdjustmentCommandPresenter(
                viewManager,
                adjustTimingCmdView,
                subtitlesManager,
                editor,
                timingAdjustmentTool);

            ICommandView synchronizationCmdView = (ICommandView)viewManager.GetView("MenuSynchronizationView");
            SynchronizationCommandPresenter synchronizationCmdPresenter = new SynchronizationCommandPresenter(
                viewManager,
                synchronizationCmdView,
                subtitlesManager,
                synchronizationTool);

            //<--------------------------------------------------------------------------------------------------------------------------------->

            //<-----------------------------------------------------------Toolbar -------------------------------------------------------------->

            ICommandView             toolbarOpenFileCmdView      = (ICommandView)viewManager.GetView("ToolbarOpenFileView");
            OpenFileCommandPresenter toolbarOpenFileCmdPresenter = new OpenFileCommandPresenter(viewManager, toolbarOpenFileCmdView, subtitlesManager);

            ICommandView             toolbarSaveFileCmdView      = (ICommandView)viewManager.GetView("ToolbarSaveFileView");
            SaveFileCommandPresenter toolbarSaveFileCmdPResenter = new SaveFileCommandPresenter(viewManager, toolbarSaveFileCmdView, subtitlesManager);

            ICommandView toolbarSaveAsFileCmdView = (ICommandView)viewManager.GetView("ToolbarSaveAsFileView");
            SaveAsFileCommandPresenter toolbarSaveAsFileCmdPResenter = new SaveAsFileCommandPresenter(viewManager, toolbarSaveAsFileCmdView, subtitlesManager);

            ICommandView        toolbarCutCmdView      = (ICommandView)viewManager.GetView("ToolbarCutView");
            CutCommandPresenter toolbarCutCmdPresenter = new CutCommandPresenter(viewManager, toolbarCutCmdView, editor);

            ICommandView         toolbarCopyCmdView      = (ICommandView)viewManager.GetView("ToolbarCopyView");
            CopyCommandPresenter toolbarCopyCmdPresenter = new CopyCommandPresenter(viewManager, toolbarCopyCmdView, editor);

            ICommandView          toolbarPasteCmdView      = (ICommandView)viewManager.GetView("ToolbarPasteView");
            PasteCommandPresenter toolbarPasteCmdPresenter = new PasteCommandPresenter(viewManager, toolbarPasteCmdView, editor);

            ICommandView         toolbarUndoCmdView      = (ICommandView)viewManager.GetView("ToolbarUndoView");
            UndoCommandPresenter toolbarUndoCmdPresenter = new UndoCommandPresenter(viewManager, toolbarUndoCmdView, undoRedoManager);

            ICommandView         toolbarRedoCmdView      = (ICommandView)viewManager.GetView("ToolbarRedoView");
            RedoCommandPresenter toolbarRedoCmdPresenter = new RedoCommandPresenter(viewManager, toolbarRedoCmdView, undoRedoManager);

            IToolStripComboBoxView    toolbarEncodingView      = (IToolStripComboBoxView)viewManager.GetView("ToolbarEncodingView");
            EncodingComboBoxPresenter toolbarEncodingPresenter = new EncodingComboBoxPresenter(viewManager, toolbarEncodingView, subtitlesManager);

            //<--------------------------------------------------------------------------------------------------------------------------------->

            //<-------------------------------------------------------Context Menu-------------------------------------------------------------->
            MainContextMenuStripView mainContextMenuStripView = new MainContextMenuStripView();
            (subtitlesFileView as IHierarchicalView).AddChildView(mainContextMenuStripView);
            MainContextMenuStripPresenter mainContextMenuStripPresenter = new MainContextMenuStripPresenter(viewManager, mainContextMenuStripView, editor);

            //<--------------------------------------------------------------------------------------------------------------------------------->

            //Próbuje otworzyć plik, w sytuacji gdy użytkownik uruchomił program poprzez polecenie "otwórz za pomocą".
            bool operationResult = subtitlesManager.TryLoadFromClickOnceDeploymentSystem();
            if (operationResult == false)
            {
                subtitlesManager.TryLoadFromLineArgs();
            }

            //<--------------------------------------------------------------------------------------------------------------------------------->

            viewManager.ShowView(mainFormView);
        }
Пример #22
0
 void Awake()
 {
     instance = this;
 }
Пример #23
0
 private void Awake()
 {
     singleton = this;
 }
Пример #24
0
 /// <summary>
 /// Konstruktor.
 /// </summary>
 /// <param name="manager">Menadżer napisów.</param>
 /// <param name="editor">Edytor napisów</param>
 public SynchronizationTool(SubtitlesManager manager, SubtitlesEditor editor)
     : base(manager, editor)
 {
     this.synchronizationPoints = new Collection <SynchronizationPoint>();
 }
Пример #25
0
 public OpenFileCommand(SubtitlesManager subtitlesManager)
 {
     this.subtitlesManager = subtitlesManager;
 }