public basic_ui(bool hoofdtab, alg_type algtype, ProgramController program) { InitializeComponent(); btnAction.IsEnabled = false; this.encrypt = hoofdtab; this.algtype = algtype; this.programma = program; if (!encrypt) { lblsentto.Content = "Komt van: "; } if (algtype == alg_type.RSA) { List <string> value = programma.Get_Users(); if (value.Count() == 0) { return; } lblsentto.Visibility = Visibility.Visible; cbbsentto.Visibility = Visibility.Visible; cbbsentto.ItemsSource = value; } else { cbbsentto.Visibility = Visibility.Hidden; lblsentto.Visibility = Visibility.Hidden; } }
public SubFunction(ProgramController program, Boolean encrypt = true) { InitializeComponent(); subtab = ""; TabItem destab = new TabItem(); destab.Header = "DES"; destab.Content = new basic_ui(encrypt, basic_ui.alg_type.DES, program); TabItem aestab = new TabItem(); aestab.Header = "AES"; aestab.Content = new basic_ui(encrypt, basic_ui.alg_type.AES, program); TabItem rsatab = new TabItem(); rsatab.Header = "RSA"; rsatab.Content = new basic_ui(encrypt, basic_ui.alg_type.RSA, program); tab_subFunction.Items.Add(destab); tab_subFunction.Items.Add(aestab); tab_subFunction.Items.Add(rsatab); }
public RegistreerWindow(Window parentwindow) { InitializeComponent(); this.parentwindow = parentwindow; gebruikerTextBox.Focus(); programma = new ProgramController(); }
public MainWindow(ProgramController program) { InitializeComponent(); hoofdtab = ""; TabItem encrypt = new TabItem(); encrypt.Header = "Encrypt"; encrypt.Content = new SubFunction(program); TabItem decrypt = new TabItem(); decrypt.Header = "Decrypt"; decrypt.Content = new SubFunction(program, false); tab_function.Items.Add(encrypt); tab_function.Items.Add(decrypt); }
public login() { InitializeComponent(); UsernameTextBox.Focus(); program = new ProgramController(); }