示例#1
0
        public MainWindow(Authorization a)
        {
            DialogView.mainWindow     = this;
            CreateMyDialog.mainWindow = this;
            Dispatcher.mainWindow     = this;

            collectionOfDialogsView = CollectionOfDialogsView.GetInstance();
            collectionOfTabPages    = CollectionOfTabPages.GetInstance();

            InitializeComponent();
            lableMyName.Text = ClientAPI.Login;

            if (ClientAPI.Role != "admin")
            {
                btnAdminSettings.Visible = false;
                btnAdminSettings.Enabled = false;
            }
            authorization = a;
        }
示例#2
0
 private Dispatcher()
 {
     collectionOfDialogsView = CollectionOfDialogsView.GetInstance();
     collectionOfTabPages    = CollectionOfTabPages.GetInstance();
     contentFromServer       = new Content();
 }