Exemplo n.º 1
0
 public void AddLineAndNew(object sender, EventArgs e)
 {
     if (this.InValidState())
     {
         this.SetFocusInFirstField();
         this.m_CurrentRow = (SHEMADDDataSet.SHEMADDSHEMADDDOPRINOSRow)((DataRowView)this.bindingSourceSHEMADDSHEMADDDOPRINOS.AddNew()).Row;
         this.m_CurrentRow.SetParentRow(this.m_ParentRow);
     }
 }
Exemplo n.º 2
0
 public void Initialize(DeklaritMode mode, DataRow parentRow, bool isCopy)
 {
     this.m_ParentRow       = parentRow;
     this.dsSHEMADDDataSet1 = (SHEMADDDataSet)this.m_ParentRow.Table.DataSet;
     this.bindingSourceSHEMADDSHEMADDDOPRINOS.DataSource = DataSetUtil.GetSubTreeDataView(this.m_ParentRow, this.dsSHEMADDDataSet1.Tables["SHEMADDSHEMADDDOPRINOS"]);
     this.bindingSourceSHEMADDSHEMADDDOPRINOS.DataMember = "";
     this.RegisterBindingSources();
     this.m_Mode        = mode;
     this.m_BaseMethods = new GenericFormClass(this.m_FrameworkDescription, this.m_FirstLevelName, "SHEMADD", this.m_Mode, this.dsSHEMADDDataSet1, this.dsSHEMADDDataSet1.SHEMADDSHEMADDDOPRINOS.Columns, this.Controls, this.m_DataGrids, this.m_AutoNumber);
     this.m_BaseMethods.FormLoadStyle();
     if ((this.m_BaseMethods.IsUpdate() || this.m_BaseMethods.IsDelete()) || (this.m_BaseMethods.IsSelect() || isCopy))
     {
         this.m_CurrentRow = (SHEMADDDataSet.SHEMADDSHEMADDDOPRINOSRow)((DataRowView)this.bindingSourceSHEMADDSHEMADDDOPRINOS.Current).Row;
         this.textSHEMADDDOPRINOSIDDOPRINOS.ButtonsRight[0].Visible = false;
     }
     if (this.m_BaseMethods.IsInsert() && !isCopy)
     {
         this.textSHEMADDDOPRINOSIDDOPRINOS.ButtonsRight[0].Visible = true;
         this.m_CurrentRow = (SHEMADDDataSet.SHEMADDSHEMADDDOPRINOSRow)((DataRowView)this.bindingSourceSHEMADDSHEMADDDOPRINOS.AddNew()).Row;
         this.m_CurrentRow.SetParentRow(this.m_ParentRow);
     }
     this.SetFocusInFirstField();
 }