private void bt_setting_Click(object sender, RoutedEventArgs e)
        {
            SettingWindow sw = new SettingWindow();

            if (mode == 1)
            {
                sw.PublicKey = this.publicKey;
                Nullable <bool> result = sw.ShowDialog();

                if (result == true)
                {
                    this.publicKey = sw.PublicKey;
                }
            }
            else if (mode == 0)
            {
                sw.Key = this.key;
                sw.bt_importPublicKey.Content = "Input";
                sw.key_name.Content           = "RSA Key";
                Nullable <bool> result = sw.ShowDialog();

                if (result == true)
                {
                    this.key = sw.Key;
                }
            }
        }
Ejemplo n.º 2
0
        private void bt_setting_Click(object sender, RoutedEventArgs e)
        {
            SettingWindow sw = new SettingWindow();

            sw.PublicKey = this.publicKey;
            Nullable <bool> result = sw.ShowDialog();

            if (result == true)
            {
                this.publicKey = sw.PublicKey;
            }
        }