Пример #1
0
        private bool GetPreviousVersion()
        {
            try
            {
                using (DataStuff sn = new DataStuff())
                {
                    tPreviousVersion.Text = sn.GetVersionAtCheckOut(AliasName, ObjectName, DatabaseName);
                }

                if (tPreviousVersion.Text.Trim() == "")
                {
                    cRestorePrevious.Checked = false;
                    cRestorePrevious.Enabled = false;
                    return(false);
                }
                else
                {
                    cRestorePrevious.Checked = true;
                    cRestorePrevious.Enabled = true;
                    return(true);
                }
            }

            catch
            {
                cRestorePrevious.Checked = false;
                cRestorePrevious.Enabled = false;
                return(false);
            }
        }