예제 #1
0
        public EditWindow(string path, string content)
        {
            WindowStartupLocation = WindowStartupLocation.CenterScreen;
            InitializeComponent();
            Title = $"Editing '{path}'";

            PasswordContent.Text = content;
            PasswordContent.Focus();
        }
예제 #2
0
        public EditWindow(string path, string content, PasswordGenerationConfig options)
        {
            WindowStartupLocation = WindowStartupLocation.CenterScreen;
            InitializeComponent();

            passwordGenerator = new PasswordGenerator(options);
            CreateCheckboxes();

            Title = $"Editing '{path}'";

            PasswordContent.Text = content;
            PasswordContent.Focus();
        }