This class is the dialog to use to prompt the user for firewall changes for the given instance.
Inheritance: GoogleCloudExtension.Theming.CommonDialogWindowBase
        /// <summary>
        /// Shows the dialog to the user and returns the changes requested.
        /// </summary>
        /// <param name="instance">The instance on which open/close ports.</param>
        public static PortChanges PromptUser(Instance instance)
        {
            var window = new PortManagerWindow(instance);

            window.ShowModal();
            return(window.ViewModel.Result);
        }
示例#2
0
        public PortManagerViewModel(PortManagerWindow owner, Instance instance)
        {
            _owner    = owner;
            _instance = instance;

            Ports     = CreatePortModels();
            OkCommand = new ProtectedCommand(OnOkCommand);
        }
 /// <summary>
 /// Shows the dialog to the user and returns the changes requested.
 /// </summary>
 /// <param name="instance">The instance on which open/close ports.</param>
 /// <returns></returns>
 public static PortChanges PromptUser(Instance instance)
 {
     var window = new PortManagerWindow(instance);
     window.ShowModal();
     return window.ViewModel.Result;
 }
        public PortManagerViewModel(PortManagerWindow owner, Instance instance)
        {
            _owner = owner;
            _instance = instance;

            Ports = CreatePortModels();
            OkCommand = new ProtectedCommand(OnOkCommand);
        }