Esempio n. 1
0
        private void versionsToolStripMenuItem_Click(object sender, EventArgs e)
        {
            frmVersions versions = new frmVersions((int)SelectedDataSource.SystemDataSourceId, VersionObjectTypes.DataSource, false, this.Icon);

            if (versions.ShowDialog() == DialogResult.OK)
            {
                MainWindow.RefreshData(SelectedDataSource.Id);
            }
        }
Esempio n. 2
0
File: Rules.cs Progetto: eyedia/idpe
 private void versionsToolStripMenuItem_Click(object sender, EventArgs e)
 {
     if (listView.SelectedItems.Count > 0)
     {
         IdpeRule    rule     = listView.SelectedItems[0].Tag as IdpeRule;
         frmVersions versions = new frmVersions(rule.Id, VersionObjectTypes.Rule);
         versions.ShowDialog();
     }
 }
Esempio n. 3
0
        private void mcnuShowVersions_Click(object sender, EventArgs e)
        {
            frmVersions versions = new frmVersions(SelectedDataSource.Id, VersionObjectTypes.DataSource, true, this.Icon);

            versions.ShowDialog();
            if ((versions.sreVersionControl1.Reverted) ||
                (versions.sreVersionControl1.Reverted))
            {
                RefreshData(SelectedDataSource.Id);
            }
        }