public void NewUCENIK(DataRow row) { UCENIKWorkItem item = this.WorkItem.Items.AddNew <UCENIKWorkItem>(); item.RootForm.Show(DeklaritMode.Insert, row, false); item.Terminate(); this.WorkItem.Activate(); }
public DataRow ShowUCENIKIDUCENIK(DataRow fillByRow) { UCENIKWorkItem item = this.WorkItem.Items.AddNew <UCENIKWorkItem>(); DataAdapterFactory.GetUCENIKDataAdapter().Fill((UCENIKDataSet)item.DataSet, Conversions.ToInteger(fillByRow["IDUCENIK"])); DataRow row = null; if (item.RootForm.Show(DeklaritMode.Update, fillByRow, false) == DialogResult.OK) { row = DataSetUtil.GetRootTable(item.DataSet).Rows[0]; } item.Terminate(); this.WorkItem.Activate(); return(row); }