Ejemplo n.º 1
0
        private void button2_Click(object sender, EventArgs e)
        {
            sprAccessoryList sprAccessoryListForm = new sprAccessoryList();

            sprAccessoryListForm.ModeCheck = "1";
            sprAccessoryListForm.Owner     = this;
            sprAccessoryListForm.ShowDialog();
        }
Ejemplo n.º 2
0
        private void saveComponents(string text)
        {
            Con.Open();
            string       qText = text;
            OleDbCommand Com   = new OleDbCommand();

            Com.Parameters.AddWithValue("type", getTypeId(cbType.Text));
            Com.Parameters.AddWithValue("naim", tbName.Text);
            Com.Parameters.AddWithValue("description", rtbDescription.Text);
            Com.Parameters.AddWithValue("price", tbPrice.Text);
            Com.CommandText = qText;
            Com.Connection  = Con;
            Com.ExecuteNonQuery();
            Con.Close();
            this.Close();
            sprAccessoryList sprAccessoryList = new sprAccessoryList();

            sprAccessoryList.loadComponents();
        }
Ejemplo n.º 3
0
        private void комплектующиеToolStripMenuItem_Click(object sender, EventArgs e)
        {
            sprAccessoryList sprAccessoryList = new sprAccessoryList();

            sprAccessoryList.Show();
        }