public void SetRecastWindow(AcceptWindow aw)
 {
     if (timeCooldown != null)
     {
         timeCooldown.SetRecastWindow(aw);
     }
 }
Example #2
0
        /// <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);
 }
Example #5
0
        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);
            }
        }
Example #6
0
        /// <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);
                }
            }
        }
Example #7
0
        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);
                }
            }
        }
Example #8
0
 public void SetRecastWindow(AcceptWindow aw)
 {
     nonRecoverableCharge.SetRecastWindow(aw);
 }
Example #9
0
 public void SetRecastWindow(AcceptWindow aw)
 {
     timeCooldown.SetRecastWindow(aw);
 }
Example #10
0
 public void SetRecastWindow(AcceptWindow aw)
 {
     recastWindow = aw;
 }
Example #11
0
 public virtual bool IsInterruptibleByJumpInput(out AcceptWindow jumpWindow)
 {
     jumpWindow = null;
     return(false);
 }
Example #12
0
 public virtual bool IsInterruptibleByDashInput(out AcceptWindow dashWindow)
 {
     dashWindow = null;
     return(false);
 }