void HandleMonitorChanged(object o, ChangedArgs args) { if (args.EventType == FileMonitorEvent.Created || args.EventType == FileMonitorEvent.Deleted) { UpdateHelpers(); } }
public virtual void DoChangedEvent(ChangedArgs args) { if (ChangedEvent != null) { ChangedEvent(this, args); } }
static void OnToolbarStyle(object obj, ChangedArgs args) { RadioAction action = (RadioAction)obj; ToolbarStyle style = (ToolbarStyle)action.CurrentValue; toolbar.ToolbarStyle = style; }
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); }
/// <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"); }
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); }
void HandleFileChanged(object o, ChangedArgs args) { Log <DesktopItem> .Debug("file {0} changed", File.Path); Values = GetValuesFromFile(); OnChanged(); }
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"); }
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; }
public void Changed(object source, ChangedArgs args) { changed = true; }
void WatcherChanged(object o, ChangedArgs args) { ((RecentFilesProvider)Provider).RefreshRecentDocs(); }
private void OnActionChanged(object o, ChangedArgs args) { Active = args.Current; }
protected override void Value_Changed(object sender, ChangedArgs args) { // RaiseChanged(this, args); }
//[System.Diagnostics.DebuggerHidden] protected override void Value_Changed(object sender, ChangedArgs args) { RaiseChanged(this, args); }
protected void OnVectorChanged(ChangedArgs e) => VectorChanged?.Invoke(this, e);
private void RadioActionActivated(object sender, ChangedArgs args) { Console.WriteLine("Radio action \"{0}\" selected", args.Current.Name); }
/// <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; }
/// <summary> /// /// </summary> /// <param name="sender"></param> /// <param name="args"></param> protected abstract void Value_Changed(object sender, ChangedArgs args);
void HandleChanged(object o, ChangedArgs args) { DockServices.System.RunOnMainThread(delegate { Update(); }); }
protected void OnConnectActionActionChangedPataNahin(object o, ChangedArgs args) { throw new NotImplementedException(); }