Esempio n. 1
0
        private void CleanMe()
        {
            ISSid = 0;

            PartTb.ResetText();
            listView2.Clear();

            listView2.View = View.Details;

            listView2.Columns.Add("RB");
            listView2.Columns.Add("Name");
            listView2.Columns.Add("CodeO");
            listView2.Columns.Add("SNO");
            listView2.Columns.Add("CNO");
            listView2.Columns.Add("CodeN");
            listView2.Columns.Add("SNN");
            listView2.Columns.Add("CNN");
            listView2.Columns.Add("Date");
            listView2.Columns.Add("Time");
            listView2.Columns.Add("Work done");
            listView2.Columns.Add("Comment");

            for (int i = 0; i < 12; i++)
            {
                listView2.AutoResizeColumn(i, ColumnHeaderAutoResizeStyle.ColumnContent);
                listView2.AutoResizeColumn(i, ColumnHeaderAutoResizeStyle.HeaderSize);
            }

            NameTb.ResetText();
            SNTb.ResetText();
            CNTb.ResetText();
            DateInTb.ResetText();
            DateSentTb.ResetText();
            IDTb.ResetText();
        }
Esempio n. 2
0
        private void button2_Click(object sender, EventArgs e)
        {
            listView1.Items.Clear();
            comboBox2.ResetText();
            comboBox3.ResetText();
            comboBox4.ResetText();
            ISSSelectorCb.ResetText();

            PartTb.ResetText();
            NameTb.ResetText();
            SNTb.ResetText();
            CNTb.ResetText();
            DateInTb.ResetText();
            DateSentTb.ResetText();
            IDTb.ResetText();
        }