Beispiel #1
0
 private void ScanComplete()
 {
     this.WaitPic.Visible     = false;
     this.btn_Scan.Enabled    = true;
     this.Cursor              = Cursors.Default;
     this.lbl_ScanStatus.Text = LangCtrl.GetString("txt_ScanReady", "Ready...");
 }
Beispiel #2
0
        private void Organization()
        {
            vTreeNode _vTreeNode = new vTreeNode(LangCtrl.GetString("mnode_Org", "Organization"))
            {
                ImageIndex = 1,
                Tag        = null
            };

            this.ROOT.Nodes.Add(_vTreeNode);
            vTreeNode _vTreeNode1 = new vTreeNode(LangCtrl.GetString("mnode_Dept", "Departments"))
            {
                ImageIndex = 2,
                Tag        = "Dept_Plugin"
            };

            _vTreeNode.Nodes.Add(_vTreeNode1);
            vTreeNode _vTreeNode2 = new vTreeNode(LangCtrl.GetString("mnode_Accounts", "Accounts"))
            {
                ImageIndex = 3,
                Tag        = "Accounts_Plugin"
            };

            _vTreeNode.Nodes.Add(_vTreeNode2);
            vTreeNode _vTreeNode3 = new vTreeNode(LangCtrl.GetString("mnode_AD", "Active Directory"))
            {
                ImageIndex = 7,
                Tag        = "AD_Plugin"
            };

            _vTreeNode.Nodes.Add(_vTreeNode3);
        }
Beispiel #3
0
 private void ImageFrame_Load(object sender, EventArgs e)
 {
     mnu_ViewImageFile.Text = LangCtrl.GetString("mnu_ViewImageFile", "View Image File");
     mnu_ExportImage.Text   = LangCtrl.GetString("mnu_ExportImage", "Export Image");
     mnu_RedactImage.Text   = LangCtrl.GetString("mnu_RedactImage", "Redact Image");
     mnu_RemoveImage.Text   = LangCtrl.GetString("mnu_RemoveImage", "Remove Image from List");
 }
Beispiel #4
0
        private void ExportForm_Load(object sender, EventArgs e)
        {
            if (Global.IS_WOLFCOM)
            {
                this.btnClose.VIBlendTheme       = VIBLEND_THEME.NERO;
                this.HeaderPanel.BackgroundImage = Properties.Resources.topbar45;
            }
            LangCtrl.reText(this);
            Global.DeviceDetection_Callback(false);
            if (string.IsNullOrEmpty(this.FolderPath))
            {
                this.timer1.Enabled = true;
                this.timer1.Start();
                return;
            }
            ZipDlg zipDlg = new ZipDlg()
            {
                FilePath = this.FolderPath
            };

            if (zipDlg.ShowDialog(this) != DialogResult.OK)
            {
                base.Close();
                return;
            }
            this.EFD.IsPwd      = zipDlg.IsPwd;
            this.EFD.IsZipFile  = zipDlg.IsZipFile;
            this.EFD.ZipName    = zipDlg.ZipName;
            this.EFD.ZipPwd     = zipDlg.ZipPwd;
            this.timer1.Enabled = true;
            this.timer1.Start();
        }
Beispiel #5
0
        private string WriteFileInfo(DataFile dRec)
        {
            StringBuilder stringBuilder = new StringBuilder();

            stringBuilder.Append(string.Format(string.Concat(LangCtrl.GetString("wrt_1", "File Is Evidence: {0}"), Environment.NewLine), dRec.IsEvidence));
            stringBuilder.Append(string.Format(string.Concat(LangCtrl.GetString("wrt_2", "File Name: {0}{1}"), Environment.NewLine), dRec.OriginalFileName, dRec.FileExtension));
            stringBuilder.Append(string.Format(string.Concat(LangCtrl.GetString("wrt_3", "File Timestamp: {0}"), Environment.NewLine), dRec.FileTimestamp));
            stringBuilder.Append(string.Format(string.Concat(LangCtrl.GetString("wrt_4", "File Uploaded: {0}"), Environment.NewLine), dRec.FileAddedTimestamp));
            stringBuilder.Append(string.Format(string.Concat(LangCtrl.GetString("wrt_5", "File Size: {0}"), Environment.NewLine), dRec.FileSize));
            stringBuilder.Append(string.Format(string.Concat(LangCtrl.GetString("wrt_6", "File Hash Code: {0}"), Environment.NewLine), dRec.FileHashCode));
            stringBuilder.Append(string.Format(string.Concat(LangCtrl.GetString("wrt_7", "Short Desc: {0}"), Environment.NewLine), dRec.ShortDesc));
            stringBuilder.Append(string.Format(string.Concat(LangCtrl.GetString("wrt_8", "Stored File Name: {0}"), Environment.NewLine), dRec.StoredFileName));
            stringBuilder.Append(string.Format(string.Concat(LangCtrl.GetString("wrt_9", "SET: {0}"), Environment.NewLine), dRec.SetName));
            stringBuilder.Append(string.Format(string.Concat(LangCtrl.GetString("wrt_10", "Security Level: {0}"), Environment.NewLine), dRec.Security));
            stringBuilder.Append(string.Format(string.Concat(LangCtrl.GetString("wrt_11", "Classification: {0}"), Environment.NewLine), dRec.Classification));
            stringBuilder.Append(string.Format(string.Concat(LangCtrl.GetString("wrt_12", "Rating: {0}"), Environment.NewLine), dRec.Rating));
            stringBuilder.Append(string.Format(string.Concat(LangCtrl.GetString("wrt_13", "RMS Number: {0}"), Environment.NewLine), dRec.RMSNumber));
            stringBuilder.Append(string.Format(string.Concat(LangCtrl.GetString("wrt_14", "CAD Number: {0}"), Environment.NewLine), dRec.CADNumber));
            stringBuilder.Append(string.Format(string.Concat(LangCtrl.GetString("wrt_15", "Retain Indefinite: {0}"), Environment.NewLine), dRec.IsIndefinite));
            stringBuilder.Append(string.Format(string.Concat(Environment.NewLine, Environment.NewLine, LangCtrl.GetString("wrt_16", "File Uploaded from this machine environment: "), Environment.NewLine), new object[0]));
            stringBuilder.Append(string.Format(string.Concat("---------------------------------------------------------------------", Environment.NewLine), new object[0]));
            stringBuilder.Append(string.Format(string.Concat(LangCtrl.GetString("wrt_17", "Machine Name: {0}"), Environment.NewLine), dRec.MachineName));
            stringBuilder.Append(string.Format(string.Concat(LangCtrl.GetString("wrt_18", "Machine Account: {0}"), Environment.NewLine), dRec.MachineAccount));
            stringBuilder.Append(string.Format(string.Concat(LangCtrl.GetString("wrt_19", "Machine Login ID: {0}"), Environment.NewLine), dRec.LoginID));
            stringBuilder.Append(string.Format(string.Concat(LangCtrl.GetString("wrt_20", "Machine Domain: {0}"), Environment.NewLine), dRec.UserDomain));
            stringBuilder.Append(string.Format(string.Concat(LangCtrl.GetString("wrt_21", "File Source Path: {0}"), Environment.NewLine), dRec.SourcePath));
            string str = Path.Combine(this.FolderName, string.Format("{0}.txt", dRec.OriginalFileName));

            using (StreamWriter streamWriter = new StreamWriter(str))
            {
                streamWriter.Write(stringBuilder.ToString());
            }
            return(str);
        }
Beispiel #6
0
 private void btn_BurnDisc_Click(object sender, EventArgs e)
 {
     if (this.cboDevice.SelectedIndex > -1)
     {
         if (this._isBurning)
         {
             this.btn_BurnDisc.Text    = LangCtrl.GetString("lbl_BurnDisc", "Burn Disc");
             this.btn_BurnDisc.Enabled = true;
             this.backgroundWorker.CancelAsync();
             return;
         }
         this.DetectMedia();
         this.progBar.Value       = 0;
         this.progBar.Text        = "0%";
         this.lbl_DiscStatus.Text = LangCtrl.GetString("Disc_1", "Recording Disc...");
         this.btn_BurnDisc.Text   = LangCtrl.GetString("DiscCancel", "Cancel");
         this._isBurning          = true;
         this._closeMedia         = true;
         this._ejectMedia         = this.chkEject.Checked;
         ListItem selectedItem = this.cboDevice.SelectedItem;
         this.Callback(true);
         IDiscRecorder2 tag = (IDiscRecorder2)selectedItem.Tag;
         this._burnData.uniqueRecorderId = tag.ActiveDiscRecorder;
         this.backgroundWorker.RunWorkerAsync(this._burnData);
         this.Cursor = Cursors.WaitCursor;
     }
 }
Beispiel #7
0
 private void MemoForm_Load(object sender, EventArgs e)
 {
     if (Global.IS_WOLFCOM)
     {
         this.HeaderPanel.BackgroundImage = (Image)Properties.Resources.topbar45;
     }
     LangCtrl.reText(this);
     if (dRecord != null)
     {
         ListBox.Items.Clear();
         using (RPM_DataFile rpmDataFile = new RPM_DataFile())
         {
             dRecord = rpmDataFile.GetDataFile(RecId);
             foreach (FileMemo fileMemo in dRecord.FileMemos)
             {
                 ListBox.Items.Add(new ListItem()
                 {
                     Text        = fileMemo.ShortDesc,
                     Description = string.Format("{0} - {1} [{2}]", fileMemo.Timestamp, fileMemo.AccountName, fileMemo.BadgeNumber),
                     Tag         = fileMemo.Id
                 });
             }
         }
     }
     SetLanguage();
 }
Beispiel #8
0
 private void SetLanguage()
 {
     LangCtrl.reText(this);
     mnu_ClearSelection.Text = LangCtrl.GetString("mnu_ClearSelection", "Clear Selection");
     mnu_RefreshView.Text    = LangCtrl.GetString("mnu_RefreshView", "Refresh View");
     mnu_TreeLines.Text      = LangCtrl.GetString("mnu_TreeLines", "Tree Lines");
 }
Beispiel #9
0
        private void EditorForm_Load(object sender, EventArgs e)
        {
            SetLanguage();
            Text = LangCtrl.GetString("dlg_MemoEditor", "Memo Editor");
            LoadVoices();
            if (DocList.Equals(null))
            {
                DocList = new List <DOCData>();
            }
            if (DocList.Count > 0)
            {
                int num = 0;
                mnu_LoadFile.Visible = false;
                mnu_Save.Visible     = false;
                try
                {
                    using (RPM_DataFile rpmDataFile = new RPM_DataFile())
                    {
                        foreach (DOCData doc in DocList)
                        {
                            FileMemo memo = rpmDataFile.GetMemo(doc.RecId);
                            if (PageBreak)
                            {
                                textControl1.Append(memo.Memo, StringStreamType.RichTextFormat, AppendSettings.StartWithNewSection);
                            }
                            else
                            {
                                textControl1.Append(memo.Memo, StringStreamType.RichTextFormat, AppendSettings.None);
                            }
                            IsReadOnly = true;
                            ++num;
                        }
                        textControl1.EditMode = EditMode.ReadOnly;
                    }
                }
                catch (Exception ex)
                {
                    string message = ex.Message;
                }
            }
            else
            {
                try
                {
                    if (!RTF.Equals(string.Empty))
                    {
                        textControl1.Load(RTF, StringStreamType.RichTextFormat);
                    }
                }
                catch
                {
                }
            }
            string stringData;

            textControl1.Save(out stringData, StringStreamType.RichTextFormat);
            Hash = stringData.GetHashCode();
            textControl1.BackgroundStyle = BackgroundStyle.ColorScheme;
            textControl1.BorderStyle     = TXTextControl.BorderStyle.None;
        }
Beispiel #10
0
 private void btn_Cancel_Click(object sender, EventArgs e)
 {
     this.IsCancel           = true;
     this.msgText.Text       = LangCtrl.GetString("msg_CancelDelete", "Cancel file delete...");
     this.btn_Cancel.Enabled = false;
     Application.DoEvents();
 }
Beispiel #11
0
 private void SetCurrentImage(int index)
 {
     lock (this)
     {
         if (this.ScanPic.Image != null)
         {
             this.ScanPic.Image.Dispose();
             this.ScanPic.Image = null;
         }
         if (index < 0)
         {
             this.lbl_ScanStatus.Text = LangCtrl.GetString("txt_ScanNoImages", "No images");
             this._imageIndex         = -1;
         }
         else
         {
             AcquiredImage item = this._images[index];
             this.ScanPic.Image = item.GetAsBitmap(true);
             ScanImg scanImg = new ScanImg();
             scanImg.SetImage((Image)this.ScanPic.Image.Clone());
             this.flowPanel.Controls.Add(scanImg);
             if (this._imageIndex == -1)
             {
                 Image image = (Image)this.ScanPic.Image.Clone();
                 this.ThumbnailImage = image.GetThumbnailImage(220, 130, null, IntPtr.Zero);
             }
             this._imageIndex = index;
         }
     }
 }
Beispiel #12
0
        private void Language_Load(object sender, EventArgs e)
        {
            if (Global.IS_WOLFCOM)
            {
                this.HeaderPanel.BackgroundImage = Properties.Resources.topbar45;
                this.btnCloseDlg.VIBlendTheme    = VIBLEND_THEME.NERO;
            }
            this.SetLanguage();
            this.cboLang.Items.Clear();
            List <CultureInfo> appLanguages = LangCtrl.GetAppLanguages();

            if (appLanguages.Count > 0)
            {
                foreach (CultureInfo appLanguage in appLanguages)
                {
                    ListItem listItem = new ListItem()
                    {
                        Text = appLanguage.DisplayName,
                        Tag  = appLanguage.Name
                    };
                    this.cboLang.Items.Add(listItem);
                }
                string[] strArrays = Global.DefaultLanguage.Split(new char[] { '|' });
                FormCtrl.SetComboItem(this.cboLang, strArrays[1]);
                this.btn_SetLanguage.Enabled = true;
            }
        }
Beispiel #13
0
 private void SelectorForm_Load(object sender, EventArgs e)
 {
     LangCtrl.GetString("dlg_AccountSelector", "Account Selector");
     accounts.EVT_NodeCallback += new AcctCtrl.DEL_NodeCallback(accounts_EVT_NodeCallback);
     accounts.InitTree();
     accounts.IsShowCurrentAccount = this.IsShowCurrentAccount;
     Controls.Add(accounts);
 }
Beispiel #14
0
 private void ThumbPanel_Load(object sender, EventArgs e)
 {
     if (Global.IS_WOLFCOM)
     {
         HeaderPanel.BackgroundImage = (Image)Properties.Resources.topbar45;
     }
     mnu_DeleteAllSnapshots.Text = LangCtrl.GetString("mnu_DeleteAllSnapshots", "Delete all snapshots");
 }
Beispiel #15
0
 private void DataProfile_Load(object sender, EventArgs e)
 {
     if (Global.IS_WOLFCOM)
     {
         HeaderPanel.BackgroundImage = (Image)Properties.Resources.topbar45;
     }
     LangCtrl.reText(this);
 }
Beispiel #16
0
 private void SaveTag_Load(object sender, EventArgs e)
 {
     if (Global.IS_WOLFCOM)
     {
         HeaderPanel.BackgroundImage = Properties.Resources.topbar45;
     }
     LangCtrl.reText(this);
     txtDesc.Select();
 }
Beispiel #17
0
        private void CDCtrl_Load(object sender, EventArgs e)
        {
            LangCtrl.reText(this);
            DateTime now = DateTime.Now;

            this.txtVolumeLabel.Text = string.Format("{0}_{1:00}_{2:00}", now.Year, now.Month, now.Day);
            this.cdUtil.DetectCDRoms(ref this.cboDevice);
            this.cboDevice.SelectedIndex = -1;
        }
Beispiel #18
0
 private void ShareForm_Load(object sender, EventArgs e)
 {
     if (Global.IS_WOLFCOM)
     {
         HeaderPanel.BackgroundImage = (Image)Properties.Resources.topbar45;
     }
     LangCtrl.reText(this);
     DisplayStats();
 }
Beispiel #19
0
 private void btn_Scan_Click(object sender, EventArgs e)
 {
     this.ScanPic.Image       = null;
     this.Cursor              = Cursors.WaitCursor;
     this.WaitPic.Visible     = true;
     this.btn_Scan.Enabled    = false;
     this.lbl_ScanStatus.Text = LangCtrl.GetString("txt_Scanning", "Scanning...");
     this.ScanDocument();
 }
Beispiel #20
0
 private void TagPanel_Load(object sender, EventArgs e)
 {
     if (Global.IS_WOLFCOM)
     {
         HeaderPanel.BackgroundImage = Properties.Resources.topbar45;
     }
     LangCtrl.reText(this);
     LangCtrl.reText(TagMenu);
 }
Beispiel #21
0
 private void DisplayStats()
 {
     using (RPM_Account rpmAccount = new RPM_Account())
     {
         Account account = rpmAccount.GetAccount(AccountID);
         lblAccount.Text     = string.Format(LangCtrl.GetString("txt_ShareAccoount", "Account: {0} • {1}"), account.ToString(), account.BadgeNumber);
         lblShareStatus.Text = string.Format(LangCtrl.GetString("txt_ShareSelected", "Selected files: {0}"), FileList.Count);
     }
 }
Beispiel #22
0
 private void SetLanguage()
 {
     LangCtrl.reText(this);
     this.mnu_NewSetFile.Text                  = LangCtrl.GetString("mnu_NewSetFile", "Add New File to Selected Set...");
     this.mnu_RefreshSets.Text                 = LangCtrl.GetString("mnu_RefreshSets", "Refresh Set List");
     this.mnu_TreeLines.Text                   = LangCtrl.GetString("mnu_TreeLines", "Tree Lines");
     this.expandAllToolStripMenuItem.Text      = LangCtrl.GetString("expandAllToolStripMenuItem", "Expand All");
     this.clearSetSearchToolStripMenuItem.Text = LangCtrl.GetString("clearSetSearchToolStripMenuItem", "Clear Set Search");
 }
Beispiel #23
0
        private void DetectMedia()
        {
            if (this.cboDevice.SelectedIndex == -1)
            {
                return;
            }
            IDiscRecorder2      tag = (IDiscRecorder2)this.cboDevice.SelectedItem.Tag;
            MsftFileSystemImage msftFileSystemImageClass = null;
            GInterface6         msftDiscFormat2DataClass = null;

            try
            {
                try
                {
                    msftDiscFormat2DataClass = (GInterface6)(new MsftDiscFormat2DataClass());
                    if (msftDiscFormat2DataClass.IsCurrentMediaSupported(tag))
                    {
                        msftDiscFormat2DataClass.Recorder = tag;
                        IMAPI_MEDIA_PHYSICAL_TYPE currentPhysicalMediaType = msftDiscFormat2DataClass.CurrentPhysicalMediaType;
                        this.lblMedia.Text       = this.cdUtil.GetMediaTypeString(currentPhysicalMediaType);
                        msftFileSystemImageClass = (MsftFileSystemImage)(new MsftFileSystemImageClass());
                        msftFileSystemImageClass.ChooseImageDefaultsForMediaType(currentPhysicalMediaType);
                        if (!msftDiscFormat2DataClass.MediaHeuristicallyBlank)
                        {
                            msftFileSystemImageClass.MultisessionInterfaces = msftDiscFormat2DataClass.MultisessionInterfaces;
                            msftFileSystemImageClass.ImportFileSystem();
                        }
                        this._totalDiscSize       = 2048L * (long)msftFileSystemImageClass.FreeMediaBlocks;
                        this.btn_BurnDisc.Enabled = true;
                    }
                    else
                    {
                        this.lblMedia.Text  = LangCtrl.GetString("lblMedia", "NO MEDIA");
                        this._totalDiscSize = 0L;
                        return;
                    }
                }
                catch (COMException cOMException1)
                {
                    COMException cOMException = cOMException1;
                    MessageBox.Show(this, cOMException.Message, "Detect Media Error", MessageBoxButtons.OK, MessageBoxIcon.Hand);
                }
            }
            finally
            {
                if (msftDiscFormat2DataClass != null)
                {
                    Marshal.ReleaseComObject(msftDiscFormat2DataClass);
                }
                if (msftFileSystemImageClass != null)
                {
                    Marshal.ReleaseComObject(msftFileSystemImageClass);
                }
            }
            this.UpdateCapacity();
        }
Beispiel #24
0
 private void MergeVideo_Load(object sender, EventArgs e)
 {
     if (Global.IS_WOLFCOM)
     {
         this.HeaderPanel.BackgroundImage = Properties.Resources.topbar45;
     }
     LangCtrl.reText(this);
     this.lblPath.Text = this.VideoPath;
     this.vListBox.Items.Add(string.Format(LangCtrl.GetString("mv_FilesCount", "Files to process: {0}"), this.media.Count));
 }
Beispiel #25
0
 private void License_Load(object sender, EventArgs e)
 {
     this.Text = LangCtrl.GetString("dlg_License", "License");
     if (File.Exists("license.txt"))
     {
         using (StreamReader streamReader = new StreamReader("license.txt"))
         {
             this.txtLic.Text = streamReader.ReadToEnd();
         }
     }
 }
Beispiel #26
0
        private void btn_SetLanguage_Click(object sender, EventArgs e)
        {
            ListItem selectedItem = this.cboLang.SelectedItem;

            Global.DefaultLanguage = string.Format("{0}|{1}", (string)selectedItem.Tag, selectedItem.Text);
            if (LangCtrl.SetLanguage((string)selectedItem.Tag))
            {
                this.SetLanguage();
                base.DialogResult = DialogResult.OK;
            }
        }
Beispiel #27
0
        private bool ValidateSearch()
        {
            bool flag = true;

            if (string.IsNullOrEmpty(txtCAD.Text) && string.IsNullOrEmpty(txtRMS.Text) && string.IsNullOrEmpty(txtSet.Text))
            {
                MessageBox.Show(this, LangCtrl.GetString("gc_msg1", "Search requires either RMS or CAD number."), "Search", MessageBoxButtons.OK, MessageBoxIcon.Asterisk);
                txtRMS.Select();
                flag = false;
            }
            return(flag);
        }
Beispiel #28
0
 private void mnu_DeleteAllSnapshots_Click(object sender, EventArgs e)
 {
     if (ImagePanel.Controls.Count <= 0 || MessageBox.Show(this, LangCtrl.GetString("tn_DeleteAll", "Delete All Snapshot Images?"), "Delete", MessageBoxButtons.YesNo, MessageBoxIcon.Question) != DialogResult.Yes)
     {
         return;
     }
     using (RPM_Snapshot rpmSnapshot = new RPM_Snapshot())
     {
         rpmSnapshot.DeleteAllSnapshots(FileID);
         rpmSnapshot.Save();
     }
     ImagePanel.Controls.Clear();
 }
Beispiel #29
0
 private void ZipDlg_Load(object sender, EventArgs e)
 {
     if (Global.IS_WOLFCOM)
     {
         this.HeaderPanel.BackgroundImage = Properties.Resources.topbar45;
     }
     LangCtrl.reText(this);
     this.lblFilePath.Text = this.FilePath;
     this.IsZipFile        = false;
     this.IsPwd            = false;
     this.ZipName          = string.Empty;
     this.ZipPwd           = string.Empty;
 }
Beispiel #30
0
 private void ExportCD_Load(object sender, EventArgs e)
 {
     if (Global.IS_WOLFCOM)
     {
         this.btnClose.VIBlendTheme       = VIBLEND_THEME.NERO;
         this.HeaderPanel.BackgroundImage = Properties.Resources.topbar45;
     }
     this.lbl_BurnDisc.Text = LangCtrl.GetString("lbl_BurnDisc", "EXPORT TO DISC");
     this.cd.EVT_CDAction  -= new CDCtrl.DEL_CDAction(this.cd_EVT_CDAction);
     this.cd.EVT_CDAction  += new CDCtrl.DEL_CDAction(this.cd_EVT_CDAction);
     this.cd.Dock           = DockStyle.Fill;
     this.BodyPanel.Controls.Add(this.cd);
     this.cd.AddFolders(this.RootFolder);
 }