예제 #1
0
 public TImport(TWizard parent, double progressPercent, TSettingManager settingManager) : base(parent, progressPercent)
 {
     SettingManager = settingManager;
     Commands.AddCommand("StartImporting", StartImportingAsync, CanImport);
     Commands.AddCommand("ClosePage", ClosePage);//For Setup Importing
     Commands.AddCommand("ErrorOK", ErrorOK);
     ImportVisible = true;
     LoadItems();
 }
예제 #2
0
 public TDevice(TSettingManager parent, string title = null, SignalEnum signalValue = SignalEnum.NoConnection, byte[] mac = null, string id = null, bool isConnected = false)
 {
     Parent      = parent;
     Id          = id;
     Title       = title;
     SignalValue = signalValue;
     Mac         = mac;
     //IsConnected = isConnected;
     Commands.AddCommand("Forget", new Action(() => { HIOStaticValues.commandQ.Add(Forget); }));
     Commands.AddCommand("Disconnect", Disconnect);
     Commands.AddCommand("Connect", Connect);
 }