void TreeviewTemplates_RowActivated(object o, Gtk.RowActivatedArgs args) { Gtk.TreeIter iter; store.GetIter(out iter, args.Path); headerText.Buffer.InsertAtCursor((string)store.GetValue(iter, 0)); }
public void HandleRowActivated(object o, Gtk.RowActivatedArgs args) { Handler.Widget.OnActivated(new TreeViewItemEventArgs(Handler.model.GetItemAtPath(args.Path))); }
void OnRowActivated(object o, Gtk.RowActivatedArgs args) { Respond(Gtk.ResponseType.Ok); }
protected virtual void OnTreeRowActivated(object o, Gtk.RowActivatedArgs args) { father.Text = Tree.SelectedNode.Text; Close(); }
protected virtual void OnPersonsRowActivated(object sender, Gtk.RowActivatedArgs e) { Trace.Call(sender, e); IList <PersonModel> persons = GetSelectedPersons(); if (persons == null || persons.Count == 0) { return; } var protocolManager = ProtocolManager; if (protocolManager == null) { #if LOG4NET _Logger.WarnFormat( "{0}.OnPersonsRowActivated(): ProtocolManager is null, " + "bailing out!", this ); #endif return; } // jump to person chat if available foreach (var chatView in Frontend.MainWindow.ChatViewManager.Chats) { if (!(chatView is PersonChatView)) { continue; } var personChatView = (PersonChatView)chatView; if (personChatView.PersonModel == persons[0]) { Frontend.MainWindow.ChatViewManager.CurrentChatView = personChatView; return; } } // this is a generic implemention that should be able to open/create // a private chat in most cases, as it depends what OpenChat() // of the specific protocol actually expects/needs foreach (PersonModel person in persons) { PersonChatModel personChat = new PersonChatModel( person, person.ID, person.IdentityName, null ); ThreadPool.QueueUserWorkItem(delegate { try { protocolManager.OpenChat( Frontend.FrontendManager, personChat ); } catch (Exception ex) { Frontend.ShowException(ex); } }); } }
public void HandleTreeRowActivated(object o, Gtk.RowActivatedArgs args) { Handler.Callback.OnActivated(Handler.Widget, EventArgs.Empty); }
void tree_RowActivated(object o, Gtk.RowActivatedArgs args) { Widget.OnActivated(EventArgs.Empty); }
void HandleRowActivated(object o, Gtk.RowActivatedArgs args) { ApplicationContext.InvokeUserCode(delegate { EventSink.OnRowActivated(args.Path.Indices[0]); }); }
/* Returns if the TreeRowArgs are for a parent Element */ protected static bool IsParent(Gtk.RowActivatedArgs args) { return(args.Path.Depth == 1); }
/* Fills the UI, with the passed ListRow and make it editable */ protected abstract void EditTreeRow(Gtk.TreeView treeView, Gtk.RowActivatedArgs args, object tabData);
protected void OnRouteListActivated(object o, Gtk.RowActivatedArgs args) { OnButtonOpenClicked(o, args); }