Example #1
0
    private void GetMsgCallBack(Tny.Folder folder, bool cancel, Tny.Msg msg, Tny.TnyException ex)
    {
        Console.WriteLine(ex.Message);

        if (msg != null && !cancel)
        {
            this.msg_view.Msg = msg;
        }
    }
Example #2
0
    private void GetHeadersCallback(Tny.Folder folder, bool cancel, Tny.List model, Tny.TnyException ex)
    {
        Console.WriteLine(ex.Message);

        if (model != null && !cancel)
        {
            this.headers_treeview.Model = (Gtk.TreeModel)model;
        }
    }
Example #3
0
    private void OnFolderChanged(object o, EventArgs args)
    {
        Tny.Ui.GTK.FolderStoreTreeModel model = (o as Gtk.TreeSelection).TreeView.Model as Tny.Ui.GTK.FolderStoreTreeModel;
        Tny.Folder folder = model.GetFolder(o as Gtk.TreeSelection);

        if (folder != null)
        {
            Tny.Ui.GTK.HeaderListModel headers_model = new Tny.Ui.GTK.HeaderListModel();
            Console.WriteLine("Folder selected: " + folder.Name);
            this.cur_folder = folder;
            folder.GetHeadersAsync(headers_model, true, GetHeadersCallback, StatusCallback);
        }
    }