Exemplo n.º 1
0
        public void PreExecution()
        {
            EventsHelper.StatusChanged(OnPluginStatusChanged, this, new StatusEventArgs(StatusChangedMode.ImageUpdate, 0));
            // set hits to zero
            List <StringSearchResult> list = new List <StringSearchResult>();

            presentation.SetData(list.ToArray());
        }
Exemplo n.º 2
0
        void settings_PropertyChanged(object sender, PropertyChangedEventArgs e)
        {
            if (e.PropertyName == "ModeSelect")
            {
                switch (settings.CurrentMode)
                {
                case IncDecSettings.Operator.Increment:
                    EventsHelper.StatusChanged(OnPluginStatusChanged, this, new StatusEventArgs(StatusChangedMode.ImageUpdate, 0));
                    break;

                case IncDecSettings.Operator.Decrement:
                    EventsHelper.StatusChanged(OnPluginStatusChanged, this, new StatusEventArgs(StatusChangedMode.ImageUpdate, 1));
                    break;

                default:
                    break;
                }
            }
        }
Exemplo n.º 3
0
 private void StatusChanged(int imageIndex)
 {
     EventsHelper.StatusChanged(OnPluginStatusChanged, this, new StatusEventArgs(StatusChangedMode.ImageUpdate, imageIndex));
 }
Exemplo n.º 4
0
 protected void ChangeStatus(int newStatus)
 {
     EventsHelper.StatusChanged(OnPluginStatusChanged, this, new StatusEventArgs(StatusChangedMode.ImageUpdate, newStatus));
 }