Ejemplo n.º 1
0
        private void button2_Click(object sender, EventArgs e)
        {
            db = new saglikDBEntities_1();
            UserDetay detay = new UserDetay(db.kullanicilar.FirstOrDefault());

            detay.ShowDialog();
        }
Ejemplo n.º 2
0
        public MainForm()
        {
            InitializeComponent();
            var db   = new saglikDBEntities_1();
            var kull = db.kullanicilar.First(a => a.username == "hepter");

            db.Entry(kull).State = EntityState.Detached;
            aktifKullanici       = kull;


            var materialSkinManager = MaterialSkinManager.Instance;

            materialSkinManager.AddFormToManage(this);
            materialSkinManager.Theme       = MaterialSkinManager.Themes.LIGHT;
            materialSkinManager.ColorScheme = new ColorScheme(Primary.Brown500, Primary.Brown700, Primary.LightBlue900,
                                                              Accent.Green700, TextShade.WHITE);
        }