Exemplo n.º 1
0
        public override void DidFinishLaunching(NSNotification notification)
        {
            _mainWindowController = new MainWindowController();
            _mainWindowController.Window.MakeKeyAndOrderFront(this);  

            _menuItemMultipleReplace.Activated += (object sender, EventArgs e) =>
            {
                _mainWindowController.ShowMultipleReplace();
            };

            _menuFixCommonErrors.Activated += (object sender, EventArgs e) =>
            {
                _mainWindowController.FixCommonErrors();
            };

            _menuItemFind.Activated += (object sender, EventArgs e) =>
            {
                _mainWindowController.Find();
            };
            _menuItemReplace.Activated += (object sender, EventArgs e) =>
            {
                _mainWindowController.Replace();
            };
            _menuItemFindNext.Activated += (object sender, EventArgs e) =>
            {
                _mainWindowController.FindNext();
            };
            _menuItemFindPrevious.Activated += (object sender, EventArgs e) =>
            {
                _mainWindowController.FindPrevious();
            };

            _videoOpen.Activated += (object sender, EventArgs e) =>
            {
                _mainWindowController.OpenVideo();
            };

            _menuItemSpellCheck.Activated += (object sender, EventArgs e) =>
            {
                _mainWindowController.SpellCheckAndGrammer();
            };
        }
 public MainWindowDelegate(MainWindowController controller)
 {
     _controller = controller;
 }            
 public ReplaceController(Subtitle subtitle, MainWindowController main)
     : base("Replace")
 {
     _subtitle = subtitle;
     _main = main;
 }