private void OnSortChanged(object obj, Gtk.ChangedArgs args) { if (SortChanged != null) { SortChanged((SortType)args.Current.CurrentValue); } }
protected void OnInvestigationActionChanged(object o, ChangedArgs args) { //Console.WriteLine ("Inv change"); if (((RadioAction)o).Active) { ProgramMode = ProgramMode.Investigation; } }
protected void OnHistorieActionChanged(object o, ChangedArgs args) { if (((RadioAction)o).Active) { /* if (_surface.DisplayMode != DisplayMode.History) { _surface.DisplayMode = DisplayMode.History; RepaintAll (); } */ } }
private void ToolSelected(object sender, ChangedArgs args) { var tbButton = sender as Gtk.RadioAction; if (tbButton == connectedTool && tbButton.Active) viewModel.selectedTool = ToolBarViewModel.Tools.CONNECTED; else if (tbButton == unconnectedTool && tbButton.Active) viewModel.selectedTool = ToolBarViewModel.Tools.UNCONNECTED; else if (tbButton == forceTool && tbButton.Active) viewModel.selectedTool = ToolBarViewModel.Tools.FORCE; else if (tbButton == momentTool && tbButton.Active) viewModel.selectedTool = ToolBarViewModel.Tools.MOMENT; else if (tbButton == selectionTool && tbButton.Active) viewModel.selectedTool = ToolBarViewModel.Tools.SELECTION; else if (tbButton == jointTool && tbButton.Active) viewModel.selectedTool = ToolBarViewModel.Tools.JOINT; }
protected void OnZeitpunktActionChanged(object o, ChangedArgs args) { if (((RadioAction)o).Active) { /* if (_surface.DisplayMode != DisplayMode.Snapshot) { _surface.DisplayMode = DisplayMode.Snapshot; RepaintAll (); } */ } }
protected void OnPresentationActionChanged(object o, ChangedArgs args) { //Console.WriteLine ("Pres change"); if (((RadioAction)o).Active) { ProgramMode = ProgramMode.Presentation; } }
protected void OnMnModeModificationChanged(object o, ChangedArgs args) { //Console.WriteLine ("Mod change"); if (((RadioAction)o).Active) { ProgramMode = ProgramMode.Modification; } }
protected void OnSixActionChanged(object o, ChangedArgs args) { throw new System.NotImplementedException (); }
void record_mode_changed_cb(object o, ChangedArgs args) { RadioAction current = args.Current; if (setting_record_mode) return; set_record_mode ((RecordMode) current.Value); }
protected void OnStopAction(object o, ChangedArgs args) { sim.stop(); }
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); }
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); }
private void RadioActionActivated (object sender, ChangedArgs args) { Console.WriteLine ("Radio action \"{0}\" selected", args.Current.Name); }
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 OnConnectActionActionChangedPataNahin(object o, ChangedArgs args) { throw new NotImplementedException (); }
static void OnToolbarStyle (object obj, ChangedArgs args) { RadioAction action = (RadioAction)obj; ToolbarStyle style = (ToolbarStyle)action.CurrentValue; toolbar.ToolbarStyle = style; }
protected void OnCheckActionChanged (object o, ChangedArgs args) { SelectedNotification.Check (); }
protected void OnEightActionChanged(object o, ChangedArgs args) { fiveAction.Active=false; }
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 (); } }
void view_mode_changed_cb(object o, ChangedArgs args) { RadioAction current = args.Current; set_view_mode ((ViewMode) current.Value); }