Exemplo 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);
            }
        }
Exemplo n.º 2
0
Arquivo: Rules.cs Projeto: 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();
     }
 }
Exemplo 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);
            }
        }