private void tsmi_Select_View_Click(object sender, EventArgs e)
 {
     SelectView_Form SelectView_FormDialog = new SelectView_Form(this, m_tbl, m_pTableDockingFormXml, m_CurViewXml.m_ViewXml, m_DBTables.m_xml, SelectView_Form.FormMode.SELECT);
     if (SelectView_FormDialog.ShowDialog() == DialogResult.OK)
     {
         m_CurViewXml.m_ViewXml = new ViewXml(SelectView_FormDialog.m_ViewXml_Selected);
         if (SelectView_FormDialog.bDefaultView)
         {
             m_CurViewXml.State= CurViewXml.ViewXmlState.DEFAULT_VIEW;
             if (m_pTableDockingFormXml != null)
             {
                 if (m_pTableDockingFormXml.m_CreateViewFormXml != null)
                 {
                     m_pTableDockingFormXml.m_CreateViewFormXml.m_DefaultViewXml = SelectView_FormDialog.m_ViewXml_Selected;
                     m_pTableDockingFormXml.m_CreateViewFormXml.sDefaultView = SelectView_FormDialog.m_ViewXml_Selected.Name;
                 }
             }
         }
         else
         {
             m_CurViewXml.State= CurViewXml.ViewXmlState.EXISTING_VIEW;
         }
         m_tbl.ClearFilterDataOf_DefineView_InputControl();
         DynamicCreateControls(m_CurViewXml.m_ViewXml);
     }
 }
Exemple #2
0
 private void tsmi_Select_View_Click(object sender, EventArgs e)
 {
     SelectView_Form SelectView_FormDialog = new SelectView_Form(this, m_tbl, m_pTableDockingFormXml, m_ViewXml, m_DBTables.m_xml, SelectView_Form.FormMode.SELECT);
     if (SelectView_FormDialog.ShowDialog() == DialogResult.OK)
     {
         m_ViewXml = SelectView_FormDialog.m_ViewXml_Selected;
         string csError = "";
         if (SelectView_FormDialog.bDefaultView)
         {
             m_pTableDockingFormXml.m_TableViewFormXml[m_Index].m_DefaultViewXml = SelectView_FormDialog.m_ViewXml_Selected;
             m_pTableDockingFormXml.m_TableViewFormXml[m_Index].sDefaultView = SelectView_FormDialog.m_ViewXml_Selected.Name;
         }
         FillDataTable(ref csError);
     }
 }