Ejemplo n.º 1
0
        public void cryptFile()
        {
            var cnt = new OpenFileDialogContext(this, null);

            cnt.dialog.InitialDirectory             = "/";
            cnt.dialog.Multiselect                  = false;
            cnt.dialog.SupportMultiDottedExtensions = true;
            cnt.dialog.CheckFileExists              = true;
            cnt.dialog.RestoreDirectory             = true;
            cnt.dialog.Title = "Выберите файл для шифрования";

            cnt.closedEvent += new OpenFileDialogContext.closed(cnt_closedEvent);
            cnt.show();
        }
Ejemplo n.º 2
0
        private void decryptFile()
        {
            var cnt = new OpenFileDialogContext(this);

            cnt.dialog.InitialDirectory             = "/";
            cnt.dialog.Multiselect                  = false;
            cnt.dialog.RestoreDirectory             = true;
            cnt.dialog.SupportMultiDottedExtensions = true;
            cnt.dialog.CheckFileExists              = true;
            cnt.dialog.Filter      = "All|*.*|Black display crypt. files|*.bdc";
            cnt.dialog.FilterIndex = 1;
            cnt.dialog.Title       = "Выберите файл для расшифровки";

            cnt.closedEvent += new OpenFileDialogContext.closed(cnt_closedEventDecrypt);
            cnt.show();
        }