示例#1
0
        public CustomerForm()
        {
            InitializeComponent();
            lblSaleLed.Tag     = 0;
            lblOnlineLed.Tag   = 0;
            lblCustomerLed.Tag = 0;

            this.StartPosition = FormStartPosition.CenterScreen;
            this.AutoSize      = true;
            this.AutoSizeMode  = System.Windows.Forms.AutoSizeMode.GrowAndShrink;
            this.Location      = new Point(0, 0);
            this.WindowState   = FormWindowState.Maximized;

            menuForm = new MenuForm();
            menuForm.Show();
            menuForm.Hide();
            menuForm.KeyUp += new KeyEventHandler(listForm_KeyUp);

            listForm = new ListForm();
            listForm.Show();
            listForm.Hide();
            listForm.KeyUp += new KeyEventHandler(listForm_KeyUp);

            try
            {
                LoadContextMenuStrip();
                LoadTemplate();
                SetContextMenuEvents();
                ClearDetails();
            }
            catch
            {
                EZLogger.Log.Error("Template.xml dosyasýnda hata var.");
            }
        }
示例#2
0
        public CustomerForm()
        {
            InitializeComponent();
            lblSaleLed.Tag     = 0;
            lblOnlineLed.Tag   = 0;
            lblCustomerLed.Tag = 0;

            menuForm = new MenuForm();
            menuForm.Show();
            menuForm.Hide();
            menuForm.KeyUp += new KeyEventHandler(listForm_KeyUp);

            listForm = new ListForm();
            listForm.Show();
            listForm.Hide();
            listForm.KeyUp += new KeyEventHandler(listForm_KeyUp);

            try
            {
                LoadContextMenuStrip();
                LoadTemplate();
                SetContextMenuEvents();
                ClearDetails();
            }
            catch
            {
                EZLogger.Log.Error("Template.xml dosyasýnda hata var.");
            }
        }