Exemple #1
0
        public MainWindow(string ID)
        {
            _identity = ID;
            Thread Thr = new Thread(StartSplashScreen);

            Thr.SetApartmentState(ApartmentState.STA);
            Thr.Start();
            Thr.Join();

            JsonPath = Environment.GetFolderPath(Environment.SpecialFolder.CommonApplicationData) + @"\PawloCore\" + ID + @"_user_data\DynamicsData\dynamicsEv.json";



            _identity        = ID;
            this.DataContext = this;

            DataList = GetDataValues($"SELECT FIRST_NAME, LAST_NAME FROM USERS WHERE ID = {Int32.Parse(_identity)}", path);
            InitializeComponent();

            MenuUC = new UI_Elements.UserMenuUC(this);
            UserMenuStack.Children.Add(MenuUC);

            FN_LNlbl.Content = DataList[0] + " " + DataList[1];
            Dynamics.Projects.Dashboard_page Page1 = new Projects.Dashboard_page(_identity, IPHelper, JsonPath);
            frame.Content = Page1;
        }
Exemple #2
0
 private void Dash_But_Click(object sender, RoutedEventArgs e)
 {
     Projects.Dashboard_page Page1 = new Projects.Dashboard_page(_identity, IPHelper, JsonPath);
     frame.Content = Page1;
 }