private void Button_Click_10(object sender, RoutedEventArgs e)
        {
            AddItem add = new AddItem();

            add.Show();
            this.Close();
        }
Esempio n. 2
0
        private void BtnAddStock_Click(object sender, RoutedEventArgs e)
        {
            AddItem addItemWindow = new AddItem(EmployeeUI, this);

            addItemWindow.Topmost = true;
            addItemWindow.Show();
        }
Esempio n. 3
0
        private void edit_Button_Click(object sender, EventArgs e)
        {
            var eForm = new AddItem(EditBook, GetSelectedValue(NameA), GetSelectedValue(Author), GetSelectedValue(Publisher),
                                    int.Parse(GetSelectedValue(Year)), int.Parse(GetSelectedValue(Id)), int.Parse(GetSelectedValue(IdPub)), true);

            eForm.Show();
        }
        private void CreateInvoice_Click(object sender, RoutedEventArgs e)
        {
            AddItem rec = new AddItem();

            rec.Show();
            this.Close();
        }
Esempio n. 5
0
        /// <summary>
        /// Add item from database
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void BindingNavigatorAddNewItem_Click(object sender, EventArgs e)
        {
            log.Debug("Open window AddItemForm...");
            AddItem setAddItemForm = new AddItem();

            setAddItemForm.AddItemChangeEvent += new EventHandler <AddItemChangeEventArgs>(this.OnAddItemChangeEvent);
            setAddItemForm.Show();
            log.Debug("Open window AddItemForm end.");
        }
Esempio n. 6
0
        private void button2_Click(object sender, EventArgs e)
        {
            activeTab = 2;
            CheckActiveTab();
            panel1.Controls.Clear();
            AddItem ad = new AddItem();

            ad.TopLevel   = false;
            ad.AutoScroll = true;
            this.panel1.Controls.Add(ad);
            ad.Show();
        }
Esempio n. 7
0
 private void toolStripMenuItem20_Click(object sender, EventArgs e)
 {
     try
     {
         if (_AddItems.IsDisposed)
         {
             _AddItems = new AddItem();
         }
         Home.Home_pnl.Visible = false;
         _AddItems.MdiParent   = this;
         _AddItems.WindowState = FormWindowState.Maximized;
         _AddItems.Show();
         _AddItems.Focus();
     }
     catch (Exception ex)
     {
         notifyIcon1.ShowBalloonTip(1000, this.Name, ex.Message, ToolTipIcon.Info);;
     }
 }
Esempio n. 8
0
        private void button1_Click(object sender, EventArgs e)
        {
            var addForm = new AddItem(AddBook);

            addForm.Show();
        }
        public static void OpenAddItemWindow(object e)
        {
            var window = new AddItem();

            window.Show();
        }
Esempio n. 10
0
        private void addNewItemToolStripMenuItem1_Click(object sender, EventArgs e)
        {
            AddItem addItem = new AddItem();

            addItem.Show();
        }