示例#1
0
        protected override void Run()
        {
            var dialog = new NavigateToDialog(NavigateToType.Files, false)
            {
                Title = GettextCatalog.GetString("Go to File"),
            };
            IEnumerable <NavigateToDialog.OpenLocation> locations = null;

            try {
                if (MessageService.RunCustomDialog(dialog, MessageService.RootWindow) == (int)ResponseType.Ok)
                {
                    dialog.Sensitive = false;
                    locations        = dialog.Locations;
                }
            } finally {
                dialog.Destroy();
            }
            if (locations != null)
            {
                foreach (var loc in locations)
                {
                    IdeApp.Workbench.OpenDocument(loc.Filename, loc.Line, loc.Column, true);
                }
            }
        }
		protected override void Run ()
		{
			var dialog = new NavigateToDialog (NavigateToType.All, true);
			try {
				if (MessageService.RunCustomDialog (dialog, MessageService.RootWindow) == (int)ResponseType.Ok) {
					dialog.Sensitive = false;
					foreach (var loc in dialog.Locations)
						IdeApp.Workbench.OpenDocument (loc.Filename, loc.Line, loc.Column, true);
				}
			} finally {
				dialog.Destroy ();
			}
		}
		protected override void Run ()
		{
			var dialog = new NavigateToDialog (NavigateToType.Files, false) {
				Title = GettextCatalog.GetString ("Go to File"),
			};
			try {
				if (MessageService.RunCustomDialog (dialog, MessageService.RootWindow) == (int)ResponseType.Ok) {
					dialog.Sensitive = false;
					foreach (var loc in dialog.Locations)
						IdeApp.Workbench.OpenDocument (loc.Filename, loc.Line, loc.Column, true);
				}
			} finally {
				dialog.Destroy ();
			}
		}
		protected override void Run ()
		{
			var dialog = new NavigateToDialog (NavigateToType.All, true);
			IEnumerable<NavigateToDialog.OpenLocation> locations = null;
			try {
				if (MessageService.RunCustomDialog (dialog, MessageService.RootWindow) == (int)ResponseType.Ok) {
					dialog.Sensitive = false;
					locations = dialog.Locations;
				}
			} finally {
				dialog.Destroy ();
			}
			if (locations != null) {
				foreach (var loc in locations)
					IdeApp.Workbench.OpenDocument (loc.Filename, loc.Line, loc.Column, true);
			}
		}