Exemplo n.º 1
0
        public void printer2()
        {
            string printerName = "pl_223";
            string unc         = new HelpDesk.PrinterCommands().GetUNCPrinter(printerName);

            string[] str = unc.Split('\\');
            Debug.WriteLine(str[2]);
        }
Exemplo n.º 2
0
        public MainWindow()
        {
            InitializeComponent();

            _ComputerCommandsviewModel = (ComputerCommands)this.Resources["ComputerCommandviewModel"];
            _UserCommandsviewModel     = (UserCommands)this.Resources["UserCommandsviewModel"];
            _PrinterCommandsviewModel  = (PrinterCommands)this.Resources["PrinterCommandsviewModel"];
            MessageBus = DependencyInjection.SimpleContainer.Get <ImessageBus>();
        }