protected void OnButtonOpenClicked(object sender, EventArgs e)
        {
            treeviewDocs.Selection.GetSelected(out TreeIter iter);
            int     ItemId = (int)DocsListStore.GetValue(iter, 0);
            ViewDoc win    = new ViewDoc();

            win.Fill(ItemId);
            win.Show();
            if ((ResponseType)win.Run() == ResponseType.Ok)
            {
                UpdateDocs();
            }
            win.Destroy();
        }
Exemple #2
0
 protected void OnButtonOpenClicked(object sender, EventArgs e)
 {
     TreeIter iter;
     treeviewDocs.Selection.GetSelected(out iter);
     int ItemId = (int)DocsFilter.GetValue(iter, 0);
     ViewDoc win = new ViewDoc();
     win.Fill(ItemId);
     win.Show();
     if((ResponseType)win.Run() == ResponseType.Ok)
         UpdateDocs();
     win.Destroy();
 }