コード例 #1
0
ファイル: VisualTreeCommand.cs プロジェクト: gitoscc/XenForms
        protected VisualTreeCommand(IMessageBus messaging, ToolboxSocket socket, ToolboxLogging log)
        {
            Log       = log;
            Messaging = messaging;
            Socket    = socket;

            messaging.Listen <VisualTreeNodeSelected>(payload =>
            {
                Node = payload.Node;
            });
        }
コード例 #2
0
        public CreateWidgetCommand(IMessageBus messaging, ToolboxSocket socket, ToolboxLogging log, ViewRegistration registration)
            : base(messaging, socket, log)
        {
            if (registration == null)
            {
                throw new ArgumentNullException(nameof(registration));
            }

            if (string.IsNullOrWhiteSpace(registration.Type?.FullName))
            {
                throw new InvalidOperationException("The view type was not specified.");
            }

            Registration = registration;
            MenuText     = registration.Type.ShortName;
        }
コード例 #3
0
 public DefaultToolboxWorkflow(IXenMessageFinder messageFinder, ToolboxLogging log)
     : base(messageFinder, log)
 {
     // ignored
 }
コード例 #4
0
 public CreateAbsouteLayoutCommand(IMessageBus messaging, ToolboxSocket socket, ToolboxLogging log)
     : base(messaging, socket, log)
 {
     MenuText = "AbsoluteLayout";
     ToolTip  = "Disabled during Beta 1.";
 }
コード例 #5
0
 public DeleteWidgetCommand(IMessageBus messaging, ToolboxSocket socket, ToolboxLogging log)
     : base(messaging, socket, log)
 {
     MenuText = "Delete";
     Image    = AppImages.Delete;
 }
コード例 #6
0
 public WindowsSettingsStore(ToolboxLogging log)
 {
     _log = log;
 }
コード例 #7
0
 public CreateGridCommand(IMessageBus messaging, ToolboxSocket socket, ToolboxLogging log)
     : base(messaging, socket, log)
 {
     MenuText = "Grid";
 }
コード例 #8
0
 public ProjectState(IFileSystem fs, IMessageBus bus, ToolboxLogging log)
 {
     _fs  = fs;
     _bus = bus;
     _log = log;
 }
コード例 #9
0
 protected ToolboxWorkflow(IXenMessageFinder messageFinder, ToolboxLogging log)
 {
     MessageFinder = messageFinder;
     Log           = log;
     Registrar     = new List <Registration>();
 }
コード例 #10
0
 public CreateStackLayoutCommand(IMessageBus messaging, ToolboxSocket socket, ToolboxLogging log)
     : base(messaging, socket, log)
 {
     MenuText = "StackLayout";
 }