private void on_item_updated(object sender, ListUpdateEventArgs args) { //updateaza itemul din store Gtk.TreeIter iter; this.Model.GetIterFromString(out iter, args.Index.ToString()); this.Model.SetValue(iter, 0, args.NewValue); this.QueueDraw(); }
private void on_item_updated(object sender, ListUpdateEventArgs args) { //updateaza itemul din store Gtk.TreeIter iter; this.Model.GetIterFromString(out iter, args.Index.ToString()); //change the value bool is_checked = (checked_items.IndexOf(args.Index) != -1); Console.WriteLine("era checkuit:" + is_checked); //store.SetValues( iter, is_checked, args.NewValue ); store.SetValue(iter, 0, is_checked); store.SetValue(iter, 1, args.NewValue); this.QueueDraw(); }
private void on_item_updated( object sender, ListUpdateEventArgs args ) { //updateaza itemul din store Gtk.TreeIter iter; this.Model.GetIterFromString( out iter, args.Index.ToString() ); //change the value bool is_checked = ( checked_items.IndexOf( args.Index ) != -1 ); Console.WriteLine("era checkuit:" + is_checked); //store.SetValues( iter, is_checked, args.NewValue ); store.SetValue( iter, 0, is_checked ); store.SetValue( iter, 1, args.NewValue); this.QueueDraw(); }
private void on_item_updated( object sender, ListUpdateEventArgs args ) { //updateaza itemul din store Gtk.TreeIter iter; this.Model.GetIterFromString( out iter, args.Index.ToString() ); this.Model.SetValue( iter, 0, args.NewValue ); this.QueueDraw(); }