public void SetRecastWindow(AcceptWindow aw) { if (timeCooldown != null) { timeCooldown.SetRecastWindow(aw); } }
/// <summary> /// Load components of the view /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void loadWindow(object sender, RoutedEventArgs e) { sensorChooser = new KinectChooser(this.kinectRegion, this.sensorChooserUi); accept = new AcceptWindow(this.sG); }
public void Execute() { CreateAcceptFile(); var acceptWindow = new AcceptWindow(); if (!AgreementMethods.UserAgreed()) { acceptWindow.ShowDialog(); } }
public void CreateWindows() { newOrderWindow = new NewOrderWindow(); acceptWindow = new AcceptWindow(); dateOperationWindow = new OrderDateOperationWindow(); editOrderWindow = new EditOrderWindow(); newOrderWindow.Closed += new EventHandler(window_Closed); editOrderWindow.Closed += new EventHandler(window_Closed); acceptWindow.Closed += new EventHandler(window_Closed); dateOperationWindow.Closed += new EventHandler(window_Closed); }
protected override void OnDelayedAttachAsMain(Character target) { // DLog.Log("debug RecastModifier:OnDelayedAttachAsMain()"); FrameAndSecondsConverter fasc = FrameAndSecondsConverter._30Fps; AcceptWindow recastWindow = new AcceptWindow( fasc.FloatFramesToSeconds(info.Rmc.@from), fasc.FloatFramesToSeconds(info.Rmc.to) ); recastLifetime.EnableChecking(); SetRecastWindow(recastWindow); SetMaxRecastCountWindow(info.Rmc.max); if (recastLifetime.IsEnd()) { target.RemoveModifier(this); } }
/// <summary> /// При выборе из контекстного меню, удаляет нужное рассписание /// </summary> private void DeleteTimetable_OnClick(object sender, RoutedEventArgs e) { var acceptWindow = new AcceptWindow(); if (acceptWindow.ShowDialog() == true) { try { var timetable = TimetablesListBox.SelectedItem; File.Delete(_workFile.FilePath + timetable); TimetablesListBox.Items.Remove(timetable); } catch (FileNotFoundException exception) { MessageBox.Show(exception.Message); } } }
private void SetRecastWindow(AcceptWindow recastWindow) { foreach (Resource resource in skillCastingRequirements.Resources) { if (resource is TimeCooldownResource) { ((TimeCooldownResource)resource).SetRecastWindow(recastWindow); } if (resource is RecoverableChargeResource) { ((RecoverableChargeResource)resource).SetRecastWindow(recastWindow); } if (resource is NonRecoverableChargeResource) { ((NonRecoverableChargeResource)resource).SetRecastWindow(recastWindow); } } }
public void SetRecastWindow(AcceptWindow aw) { nonRecoverableCharge.SetRecastWindow(aw); }
public void SetRecastWindow(AcceptWindow aw) { timeCooldown.SetRecastWindow(aw); }
public void SetRecastWindow(AcceptWindow aw) { recastWindow = aw; }
public virtual bool IsInterruptibleByJumpInput(out AcceptWindow jumpWindow) { jumpWindow = null; return(false); }
public virtual bool IsInterruptibleByDashInput(out AcceptWindow dashWindow) { dashWindow = null; return(false); }