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; }
private Dispatcher() { collectionOfDialogsView = CollectionOfDialogsView.GetInstance(); collectionOfTabPages = CollectionOfTabPages.GetInstance(); contentFromServer = new Content(); }