/// <summary> 音量降低 </summary> public void DecreaseVolumn() { SettingStage.OrdersIntervial(0.2); var volume = VolumeValue - VolumeSpan; VolumeValue = volume <= 0 ? 0 : volume; }
/// <summary> 音量增加 </summary> public void IncreaseVolumn() { SettingStage.OrdersIntervial(0.2); var volume = VolumeValue + VolumeSpan; VolumeValue = volume >= 100 ? 100 : volume; }
internal void DealCmd(Msg msg) { if (Utility.isDownLoading) { switch (msg) { case Msg.CANCEL: //取消下载 if (label.Visibility == Visibility.Visible) { SettingStage.OrdersIntervial(1); isFailed = true; BarGo(); Utility.StopDownLoadData(); SettingStage.Warning.WarningText = "您已经手动取消下载更新包,系统更新失败。"; Utility.isManuStopLoad = true; SettingStage.Stage.StopZipTimers(); SettingStage.Stage.StopThread(); } break; default: break; } } else { label.Visibility = Visibility.Collapsed; //SettingStage.Warning.WarningText = "正在解压更新包,期间不响应任何用户操作。"; } }
private void PressCancleBtn() { SettingStage.OrdersIntervial(1); SettingStage.CurrentStage = StageEnum.MainFace; cancleBtn.RemoteClick(); IsHitTestVisible = false; isValid = false; WinDisAppear(); }
void PressOkBtn() { SettingStage.OrdersIntervial(1); okBtn.RemoteClick(); isValid = false; IsHitTestVisible = false; if (ClickYesBtn != null) { ClickYesBtn(this, new EventArgs()); } if (titleBox.Visibility == Visibility.Visible) { //MessageBox.Show(titleBox.Text); if (ClickTextBoxYesBtn != null) { ClickTextBoxYesBtn(titleBox.Text); } } WinDisAppear(); }