예제 #1
0
        public SellingWindow(Current_User user, GeneralSettings settings)
        {
            InitializeComponent();

            this.user     = user;
            this.settings = settings;
            curr_rout     = new Rout();
            disable_components();
            initialize_depr();
        }
예제 #2
0
 private bool initialize_user()
 {
     user = new Current_User();
     if (user.login == null)
     {
         return(false);
     }
     else
     {
         return(true);
     }
 }
예제 #3
0
        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;
            }
        }