public static void EditDatasource(string sRegRoot, IAzLogDatasource iazlds) { AzAddDatasource_Azure azads = new AzAddDatasource_Azure(sRegRoot, iazlds); if (azads.ShowDialog() == System.Windows.Forms.DialogResult.OK) { azads.m_iazlds.SetName(azads.m_ebName.Text); //return azads.m_iazlds; } //return null; }
/* C R E A T E D A T A S O U R C E */ /*---------------------------------------------------------------------------- * %%Function: CreateDatasource * %%Qualified: AzLog.AzAddDatasource_Azure.CreateDatasource * %%Contact: rlittle * * ----------------------------------------------------------------------------*/ public static IAzLogDatasource CreateDatasource(string sRegRoot) { AzAddDatasource_Azure azads = new AzAddDatasource_Azure(sRegRoot); if (azads.ShowDialog() == System.Windows.Forms.DialogResult.OK) { if (azads.m_iazlds == null) { MessageBox.Show("No datasource defined. Aborting add"); return(null); } azads.m_iazlds.SetName(azads.m_ebName.Text); return(azads.m_iazlds); } return(null); }