public void SetInboundType(int type) { if (coreInfo.customInbType == type) { return; } coreInfo.customInbType = Misc.Utils.Clamp( type, 0, Models.Datas.Table.customInbTypeNames.Length); GetParent().InvokeEventOnPropertyChange(); if (coreCtrl.IsCoreRunning()) { coreCtrl.RestartCoreThen(); } }
public void SetConfig(string newConfig) { var trimed = VgcApis.Misc.Utils.TrimConfig(newConfig); if (string.IsNullOrEmpty(trimed) || coreInfo.config == trimed) { return; } coreInfo.config = trimed; UpdateSummary(); if (coreCtrl.IsCoreRunning()) { coreCtrl.RestartCoreThen(); } }
public void SetConfig(string newConfig) { var trimed = VgcApis.Misc.Utils.TrimConfig(newConfig); if (string.IsNullOrEmpty(trimed) || coreInfo.config == trimed) { return; } coreInfo.config = trimed; UpdateSummaryThen(() => { GetParent().InvokeEventOnPropertyChange(); }); if (coreCtrl.IsCoreRunning()) { coreCtrl.RestartCoreThen(); } }