protected void OnButtonAddClicked(object sender, EventArgs e) { ExtraField win = new ExtraField(); win.TableName = entryDBTable.Text; win.DocTypeID = TypeId; win.Show(); if ((ResponseType)win.Run() == ResponseType.Ok) { UpdateFields(); } win.Destroy(); }
protected void OnButtonEditClicked(object sender, EventArgs e) { TreeIter iter; treeviewFields.Selection.GetSelected(out iter); int ItemId = (int)FieldsListStore.GetValue(iter, 0); ExtraField win = new ExtraField(); win.TableName = entryDBTable.Text; win.DocTypeID = TypeId; win.Fill(ItemId); win.Show(); if ((ResponseType)win.Run() == ResponseType.Ok) { UpdateFields(); } win.Destroy(); }
protected void OnButtonEditClicked(object sender, EventArgs e) { TreeIter iter; treeviewFields.Selection.GetSelected(out iter); int ItemId = (int)FieldsListStore.GetValue(iter, 0); ExtraField win = new ExtraField(); win.TableName = entryDBTable.Text; win.DocTypeID = TypeId; win.Fill (ItemId); win.Show (); if((ResponseType)win.Run () == ResponseType.Ok) UpdateFields(); win.Destroy (); }
protected void OnButtonAddClicked(object sender, EventArgs e) { ExtraField win = new ExtraField(); win.TableName = entryDBTable.Text; win.DocTypeID = TypeId; win.Show (); if((ResponseType)win.Run () == ResponseType.Ok) UpdateFields(); win.Destroy (); }