public SingleContentChange(string Label, string ID, int mode, ChangeWin Window, PersonalInfoUC PUC, ProfileView PV, MainWindow main) { _PUC = PUC; _PV = PV; InitializeComponent(); _Window = Window; _main = main; _mode = mode; _ID = ID; ContentLBL.Content = Label; }
public ChangeWin(string ID, int a, PersonalInfoUC PUC, ProfileView PV, MainWindow Window) { InitializeComponent(); switch (a) { case 1: SingleContentChange LoginChangeUC = new SingleContentChange("Nowy login", ID, 1, this, PUC, PV, Window); StackContent.Children.Add(LoginChangeUC); break; case 2: PassContentChange PassChangeUC = new PassContentChange(ID, this); StackContent.Children.Add(PassChangeUC); break; case 3: SingleContentChange FNChangeUC = new SingleContentChange("Nowe imię", ID, 3, this, PUC, PV, Window); StackContent.Children.Add(FNChangeUC); break; case 4: SingleContentChange LNChangeUC = new SingleContentChange("Nowe nazwisko", ID, 4, this, PUC, PV, Window); StackContent.Children.Add(LNChangeUC); break; case 5: SingleContentChange EmailChangeUC = new SingleContentChange("Nowy E-Mail", ID, 5, this, PUC, PV, Window); StackContent.Children.Add(EmailChangeUC); break; case 6: DOBContentChange DOBChangeUC = new DOBContentChange(ID); StackContent.Children.Add(DOBChangeUC); break; case 7: SingleContentChange CityChangeUC = new SingleContentChange("Nowe miasto", ID, 7, this, PUC, PV, Window); StackContent.Children.Add(CityChangeUC); break; } }
public ProfileView(MainWindow Window, List <string> Credentials) { _Window = Window; InitializeComponent(); _Credentials = new List <string>(); _Credentials = Credentials; DynDataFolder = Environment.GetFolderPath(Environment.SpecialFolder.CommonApplicationData) + @"\PawloCore\" + _Window._identity + @"_user_data\"; using (DynDB db = new DynDB()) { ImageDyn.Source = db.Load_Image(_Window._identity); } DateRegistTxt.Text = DateRegistTxt.Text + " " + _Credentials[10]; FN_man.Content = _Credentials[1]; LN_man.Content = _Credentials[2]; Projects.ProfileElements.PersonalInfoUC EssentialInfoUC = new Projects.ProfileElements.PersonalInfoUC(_Credentials, this, Window); PersonalStk.Children.Add(EssentialInfoUC); Projects.ProfileElements.AdditionalInfoUC AdditionalInfoUC = new Projects.ProfileElements.AdditionalInfoUC(_Credentials); AdditionalStk.Children.Add(AdditionalInfoUC); }