Example #1
0
 void HandleMonitorChanged(object o, ChangedArgs args)
 {
     if (args.EventType == FileMonitorEvent.Created || args.EventType == FileMonitorEvent.Deleted)
     {
         UpdateHelpers();
     }
 }
Example #2
0
 public virtual void DoChangedEvent(ChangedArgs args)
 {
     if (ChangedEvent != null)
     {
         ChangedEvent(this, args);
     }
 }
Example #3
0
        static void OnToolbarStyle(object obj, ChangedArgs args)
        {
            RadioAction  action = (RadioAction)obj;
            ToolbarStyle style  = (ToolbarStyle)action.CurrentValue;

            toolbar.ToolbarStyle = style;
        }
Example #4
0
 private void RadioActionActivated(object sender, ChangedArgs args)
 {
     MainClass.MainWindow.StopSocetServer();
     Console.WriteLine("Ip Address -" + args.Current.Label);
     MainClass.Settings.RemoteIpAdress = args.Current.Label;
     //MainClass.MainWindow.StartSocetServer(MainClass.Settings.RemoteIpAdress);
 }
Example #5
0
 /// <summary>
 ///
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="args"></param>
 //[System.Diagnostics.DebuggerHidden]
 protected virtual void RaiseChanged(object sender, ChangedArgs args)
 {
     if (changed != null)
     {
         changed(sender, args);
     }
 }
        private void OnArtistFilterChanged(object o, ChangedArgs args)
        {
            var new_artist_view = args.Current.Value == 0 ? artist_view : albumartist_view;
            var old_artist_view = args.Current.Value == 1 ? artist_view : albumartist_view;

            SwapView(old_artist_view, new_artist_view);
            ArtistFilterType.Set(args.Current.Value == 1 ? "albumartist" : "artist");
        }
Example #7
0
        static void OnRadio(object obj, ChangedArgs args)
        {
            RadioAction action = (RadioAction)obj;

            Console.WriteLine("Action {0} (type={1}) activated (active={2}) (value {3})",
                              action.Name, action.GetType().FullName,
                              action.Active, action.CurrentValue);
        }
Example #8
0
        void HandleFileChanged(object o, ChangedArgs args)
        {
            Log <DesktopItem> .Debug("file {0} changed", File.Path);

            Values = GetValuesFromFile();

            OnChanged();
        }
Example #9
0
 void WatcherChanged(object o, ChangedArgs args)
 {
     if (args.EventType == FileMonitorEvent.ChangesDoneHint)
     {
         DockServices.System.RunOnMainThread(delegate {
             UpdateItems();
         });
     }
 }
 private void OnViewModeChanged(object o, ChangedArgs args)
 {
     if (args.Current.Value == 0)
     {
         LayoutLeft();
         BrowserPosition.Set("left");
     }
     else
     {
         LayoutTop();
         BrowserPosition.Set("top");
     }
 }
 private void OnViewModeChanged(object o, ChangedArgs args)
 {
     //Hyena.Log.InformationFormat ("ListBrowser mode toggled, val = {0}", args.Current.Value);
     if (args.Current.Value == 0)
     {
         LayoutLeft();
         BrowserPosition.Set("left");
     }
     else
     {
         LayoutTop();
         BrowserPosition.Set("top");
     }
 }
        private void RadioActionActivated(object sender, ChangedArgs args)
        {
            RadioAction   action = args.Current;
            MessageDialog md;

            if (action.Active)
            {
                md = new MessageDialog(this, DialogFlags.DestroyWithParent,
                                       MessageType.Info, ButtonsType.Close,
                                       "You activated radio action: \"{0}\" of type \"{1}\".\nCurrent value: {2}",
                                       action.Name, action.GetType(),
                                       args.Current.Value);
                md.Run();
                md.Destroy();
            }
        }
        private void OnArtistFilterChanged(object o, ChangedArgs args)
        {
            Widget new_artist_view = args.Current.Value == 0 ? artist_view : albumartist_view;
            Widget old_artist_view = args.Current.Value == 1 ? artist_view : albumartist_view;

            List <ScrolledWindow> new_filter_list = new List <ScrolledWindow> ();
            List <ScrolledWindow> old_filter_list = new List <ScrolledWindow> (filter_scrolled_windows);

            foreach (ScrolledWindow fw in old_filter_list)
            {
                bool contains = false;
                foreach (Widget child in fw.AllChildren)
                {
                    if (child == old_artist_view)
                    {
                        contains = true;
                    }
                }

                if (contains)
                {
                    Widget view_widget = (Widget)new_artist_view;
                    if (view_widget.Parent == null)
                    {
                        SetupFilterView(new_artist_view as ArtistListView);
                    }

                    ScrolledWindow win = (ScrolledWindow)view_widget.Parent;

                    new_filter_list.Add(win);
                }
                else
                {
                    new_filter_list.Add(fw);
                }
            }

            filter_scrolled_windows = new_filter_list;

            ClearFilterSelections();

            Layout();

            ArtistFilterType.Set(args.Current.Value == 1 ? "albumartist" : "artist");
        }
Example #14
0
    protected void changeview(object o, ChangedArgs args)
    {
        if (data.data == null)
        {
            return;
        }

        if (this.TwoDimensionalAction.Active)
        {
            data.probe.default_display = probedisplay.TwoDimensional;
        }
        else
        {
            data.probe.default_display = probedisplay.TenTwenty;
        }

        data.probe.draw(this.drawingareaSDG.GdkWindow);
        this.drawingareaSDG.QueueDraw();
        return;
    }
Example #15
0
 public void Changed(object source, ChangedArgs args)
 {
     changed = true;
 }
Example #16
0
 void WatcherChanged(object o, ChangedArgs args)
 {
     ((RecentFilesProvider)Provider).RefreshRecentDocs();
 }
 private void OnActionChanged(object o, ChangedArgs args)
 {
     Active = args.Current;
 }
Example #18
0
 protected override void Value_Changed(object sender, ChangedArgs args)
 {
     //   RaiseChanged(this, args);
 }
Example #19
0
 //[System.Diagnostics.DebuggerHidden]
 protected override void Value_Changed(object sender, ChangedArgs args)
 {
     RaiseChanged(this, args);
 }
Example #20
0
 protected void OnVectorChanged(ChangedArgs e) => VectorChanged?.Invoke(this, e);
Example #21
0
 private void RadioActionActivated(object sender, ChangedArgs args)
 {
     Console.WriteLine("Radio action \"{0}\" selected", args.Current.Name);
 }
Example #22
0
 /// <summary>
 /// 
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="args"></param>
 //[System.Diagnostics.DebuggerHidden]
 protected virtual void RaiseChanged(object sender, ChangedArgs args)
 {
     if (changed!=null)
         changed(sender, args);
 }
 private void OnActionChanged(object o, ChangedArgs args)
 {
     Log.Debug(string.Format("[sub] Set sub {0}", args.Current.Value));
     ServiceManager.PlayerEngine.SubtitleIndex = args.Current.Value;
 }
Example #24
0
 /// <summary>
 ///
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="args"></param>
 protected abstract void Value_Changed(object sender, ChangedArgs args);
Example #25
0
 /// <summary>
 /// 
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="args"></param>
 protected abstract void Value_Changed(object sender, ChangedArgs args);
Example #26
0
 void HandleChanged(object o, ChangedArgs args)
 {
     DockServices.System.RunOnMainThread(delegate {
         Update();
     });
 }
Example #27
0
 public void Changed(object source, ChangedArgs args)
 {
     changed = true;
 }
Example #28
0
 protected void OnConnectActionActionChangedPataNahin(object o, ChangedArgs args)
 {
     throw new NotImplementedException();
 }