예제 #1
0
        public Slide(SlideRecord sRec)
        {
            this.InitializeComponent();
            this.sRecord = sRec;
            (new ToolTip()).SetToolTip(this.lblRetention, "Retention Days Remaining");
            this.IsVideo = false;
            string[] videoFormats = this.VideoFormats;
            int      num          = 0;

            while (true)
            {
                if (num < (int)videoFormats.Length)
                {
                    string str = videoFormats[num];
                    if (this.sRecord.dRecord.FileExtension.ToUpper().Equals(str))
                    {
                        this.IsVideo = true;
                        break;
                    }
                    else
                    {
                        num++;
                    }
                }
                else
                {
                    break;
                }
            }
            this.SetSlideData();
            if (Global.IsRights(Global.RightsProfile, UserRights.SHARE))
            {
                this.mnu_ShareFile.Visible = true;
            }
            if ((this.VideoFormats.Contains <string>(sRec.dRecord.FileExtension.ToUpper()) || this.ImageFormats.Contains <string>(sRec.dRecord.FileExtension.ToUpper())) && Global.IsRights(Global.RightsProfile, UserRights.REDACT))
            {
                this.mnu_RedactVideo.Visible = true;
            }
            if (sRec != null)
            {
                using (RPM_Account rPMAccount = new RPM_Account())
                {
                    this.aRecord = rPMAccount.GetAccount(sRec.dRecord.AccountId);
                }
                this.sRecord.IsMemo = this.IsMemos();
            }
        }
예제 #2
0
        private void mnuProfileData_Click(object sender, EventArgs e)
        {
            this.BackColor = Color.FromArgb(250, 250, 250);
            ProfileData profileDatum = new ProfileData(this.sRecord);

            using (RPM_DataFile rPMDataFile = new RPM_DataFile())
            {
                rPMDataFile.ViewFileData(this.sRecord.dRecord.Id);
            }
            if (profileDatum.ShowDialog(this) == DialogResult.OK)
            {
                this.sRecord = profileDatum.sRecord;
                using (RPM_DataFile rPMDataFile1 = new RPM_DataFile())
                {
                    this.sRecord.Action = ACTION.UPDATE;
                    rPMDataFile1.SaveUpdate(this.sRecord.dRecord);
                    rPMDataFile1.Save();
                    this.lblDesc.Text = this.sRecord.dRecord.ShortDesc;
                    this.Callback(this, new CmdSlideEventArgs(this.sRecord));
                }
                this.SetSlideData();
            }
            this.SetSelectMode();
        }
예제 #3
0
 public ProfileData(SlideRecord sRec)
 {
     this.InitializeComponent();
     this.sRecord = sRec;
 }
예제 #4
0
 public CmdSlideEventArgs(SlideRecord rec)
 {
     this.SlideRecord = rec;
 }