예제 #1
0
        private void btnLogin_Click(object sender, EventArgs e)
        {
            FactoryObject.SetManager();
            string kullaniciAdi = tbxKullaniciAdi.Text;
            string password     = tbxPassword.Text;

            if (!string.IsNullOrEmpty(kullaniciAdi) && !string.IsNullOrEmpty(password))
            {
                foreach (var item in FactoryObject.Managers)
                {
                    if (kullaniciAdi == item.UserName && password == item.Password)
                    {
                        FactoryObject.SetAllFile();
                        MainPage mainPage = new MainPage(this);

                        this.Hide();
                        mainPage.Show();
                        break;
                    }
                }
            }
            else
            {
                MessageBox.Show("Bos geçmeyiniz");
            }
        }
예제 #2
0
        public AnaSayfa()
        {
            InitializeComponent();
            SetProperty();


            FileHelper.LoadFile();
            FactoryObject.SetAllFile();
            gBInfo.Hide();
        }
예제 #3
0
        public ProductSearchFrm()
        {
            InitializeComponent();
            SetProperty();


            FileHelper.LoadFile();
            FactoryObject.SetAllFile();
            gBInfo.Hide();
        }