Ejemplo n.º 1
0
        private PrinterManager()
        {
            _window = (PrinterWindow)Application.Current.MainWindow;

            RemotePrinter = new PrinterEntity[2] {
                new PrinterEntity(eAssignedLane_Printer.Lane1, ePrinterVendor.None), new PrinterEntity(eAssignedLane_Printer.Lane2, ePrinterVendor.None)
            };

            MonitorFolders.Clear();
            JudgeWipeRoutines.Clear();

            using (var ini = new IniFile())
            {
                string method = ini.Read("PrinterCenter", "Data_Exchange");
                Enum.TryParse(method, out ExchangeMethod);
                Log.Log4.PrinterLogger.InfoFormat("*ExchangeMethod={0}", ExchangeMethod.ToString());
            }
        }
Ejemplo n.º 2
0
        public PrinterWindowVM()
        {
            _window = (PrinterWindow)Application.Current.MainWindow;
            using (IniFile ini = new IniFile())
            {
                Boolean.TryParse(ini.Read("ToolBar", "Setting"), out _SettingVisible);
                Boolean.TryParse(ini.Read("ToolBar", "Chart"), out _ChartVisible);
                Boolean.TryParse(ini.Read("ToolBar", "Flow"), out _FlowVisible);
                Boolean.TryParse(ini.Read("ToolBar", "Wipe"), out _WipeVisible);
                Boolean.TryParse(ini.Read("ToolBar", "Doctor"), out _DoctorVisible);

                string initPage = ini.Read("ToolBar", "Default");
                switch (initPage)
                {
                case "Chart":
                    _ChartIsCheck = true;
                    break;

                case "Flow":
                    _FlowIsCheck = true;
                    break;

                case "Wipe":
                    _WipeIsCheck = true;
                    break;

                case "Doctor":
                    _DoctorIsCheck = true;
                    break;

                case "Setting":
                default:
                    _SettingIsCheck = true;
                    break;
                }

                isCustomizationVisible = ini.IsSectionExist("Custom");
                isFujiEasyLinkVisible  = ini.IsSectionExist("FujiEasyLink");
            }
        }