Пример #1
0
        private void tsbButton_Click(object sender, EventArgs e)
        {
            if (sender is ToolStripSplitButton)
            {
                ((ToolStripSplitButton)sender).ShowDropDown();
            }
            else
            {
                string strTag = ((ToolStripButton)sender).Tag.TOSTRING();

                if (strTag == tsbKapat.Tag.TOSTRING())
                {
                    Close();
                }
                else if (strTag == tsbHizliSatis.Tag.TOSTRING())
                {
                    //frmHizliSatisKantin frmForm = new frmHizliSatisKantin();
                    frmHizliSatis frmForm = new frmHizliSatis();
                    frmForm.MdiParent = this;
                    frmForm.Show();

                    pnlMenu.Visible = false;
                    this.Refresh();
                    tMenu.Enabled = true;
                }
            }
        }
Пример #2
0
        private void tsbButton_Click(object sender, EventArgs e)
        {
            if (sender is ToolStripSplitButton)
            {
                ((ToolStripSplitButton)sender).ShowDropDown();
            }
            else
            {
                string strTag = ((ToolStripButton)sender).Tag.TOSTRING();

                if (strTag == tsbKapat.Tag.TOSTRING())
                {
                    Close();
                }
                else if (strTag == tsbHizliSatis.Tag.TOSTRING())
                {
                    frmHizliSatis frmForm = new frmHizliSatis();
                    frmForm.MdiParent = this;
                    frmForm.Show();
                }
            }
        }
Пример #3
0
        private void tsbButton_Click(object sender, EventArgs e)
        {
            if (sender is ToolStripSplitButton)
            {
                ((ToolStripSplitButton)sender).ShowDropDown();
            }
            else
            {
                string strTag = ((ToolStripButton)sender).Tag.TOSTRING();

                if (strTag == tsbKapat.Tag.TOSTRING())
                {
                    Close();
                }
                else if (strTag == tsbKullaniciDegistir.Tag.TOSTRING())
                {
                    pnlMenu.Visible = false;
                    frmKullaniciGirisi fkgGiris = new frmKullaniciGirisi();
                    if (fkgGiris.ShowDialog() == DialogResult.Cancel)
                    {
                        fkgGiris.Dispose();
                        Application.ExitThread();
                    }
                    else
                    {
                        fkgGiris.Dispose();
                        btnMenu.PerformClick();
                    }
                }
                else
                {
                    if (!clsGenel.strKurumKodu.ISNULLOREMPTY())
                    {
                        if (strTag == tsbHizliSatis.Tag.TOSTRING())
                        {
                            //frmHizliSatisKantin frmForm = new frmHizliSatisKantin();
                            frmHizliSatis frmForm = new frmHizliSatis(strTag);
                            frmForm.MdiParent = this;
                            frmForm.Show();

                            pnlMenu.Visible = false;
                            this.Refresh();
                            tMenu.Enabled = true;
                        }
                        else if (strTag == tsbMasaSatis.Tag.TOSTRING())
                        {
                            frmMasaSatis frmForm = new frmMasaSatis();
                            frmForm.MdiParent = this;
                            frmForm.Show();

                            pnlMenu.Visible = false;
                            this.Refresh();
                            tMenu.Enabled = true;
                        }
                    }
                    else
                    {
                        MessageBox.Show("Bu forma girebilmek için lütfen kurum kodunu belirterek kullanıcı girişi yapınız.", "Hata", MessageBoxButtons.OK, MessageBoxIcon.Error, MessageBoxDefaultButton.Button1);
                    }
                }
            }
        }