Beispiel #1
0
        private void unrar_PasswordRequired(object sender, PasswordRequiredEventArgs e)
        {
            FrmTextInput dialog = new FrmTextInput();

            dialog.Prompt       = string.Format("请输入密码");
            dialog.PasswordChar = '*';
            if (dialog.ShowDialog() == DialogResult.OK)
            {
                e.Password          = dialog.Value;
                e.ContinueOperation = true;
            }
            else
            {
                e.ContinueOperation = false;
            }
        }
Beispiel #2
0
        public void unrar_MissingVolume(object sender, MissingVolumeEventArgs e)
        {
            FrmTextInput dialog = new FrmTextInput();

            dialog.Value  = e.VolumeName;
            dialog.Prompt = string.Format("信息丢失,继续或取消.");
            if (dialog.ShowDialog() == DialogResult.OK)
            {
                e.VolumeName        = dialog.Value;
                e.ContinueOperation = true;
            }
            else
            {
                e.ContinueOperation = false;
            }
        }