public SellingWindow(Current_User user, GeneralSettings settings) { InitializeComponent(); this.user = user; this.settings = settings; curr_rout = new Rout(); disable_components(); initialize_depr(); }
private bool initialize_user() { user = new Current_User(); if (user.login == null) { return(false); } else { return(true); } }
List <Action> delegates; // список делегатов, которые будут вызваны для изменения данных public EditProfile(Current_User user, ImageBrush photo) { InitializeComponent(); delegates = new List <Action>(); this.user = user; this.mw_photo = photo; this.username.Text = String.Join(" ", new string[3] { user.surname, user.name, user.patronymic }); this.newpassword.IsEnabled = false; set_photo(); if (this.user.privileged) { this.extras.Visibility = Visibility.Visible; } else { this.extras.Visibility = Visibility.Hidden; } }