Exemple #1
0
        private void Form1_Load(object sender, EventArgs e)
        {
            Status_comboBox.Hide();
            Status_comboBox.Items.Add("inLending");
            Status_comboBox.Items.Add("overDue");
            Status_comboBox.Items.Add("completed");
            dateTimePicker.Hide();
            dateTimePicker1.Hide();
            Save_button.Hide();
            LendingID_label.Text    = l.getLendingID().ToString();
            CustomerID_label.Text   = l.getCustomer().getCustomerID().ToString();
            CustomerName_label.Text = l.getCustomer().getCustomerName();
            StartDate_label.Text    = l.getStartDate().ToString();
            EndDate_label.Text      = l.getEndDate().ToString();
            Status_label.Text       = l.getStatus().ToString();
            ReturnDate_label.Text   = l.getReturnDate().ToString();
            Title_label.Text        = "Lending " + "#" + l.getLendingID().ToString() + " Details";

            for (int i = 0, j = 0; i < textBoxes.Count() && j < l.getRecords().Count(); i = i + 4, j++)
            {
                textBoxes[i].Text     = l.getRecords()[j].getRecord().getQrCode().ToString();
                textBoxes[i + 1].Text = l.getRecords()[j].getRecord().getRecordName().ToString();
                textBoxes[i + 2].Text = l.getRecords()[j].getRecord().getArtist().ToString();
                textBoxes[i + 3].Text = l.getRecords()[j].getQuantity().ToString();
            }
        }
Exemple #2
0
 private void button2_Click(object sender, EventArgs e)
 {
     EndDate_label.Hide();
     Status_label.Hide();
     Status_comboBox.Show();
     dateTimePicker.Show();
     dateTimePicker.Value = l.getEndDate();
     Status_comboBox.Text = l.getStatus().ToString();
     Save_button.Show();
     dateTimePicker1.Show();
     ReturnDate_label.Hide();
 }
        void ReleaseDesignerOutlets()
        {
            if (Delete_button != null)
            {
                Delete_button.Dispose();
                Delete_button = null;
            }

            if (Description_text != null)
            {
                Description_text.Dispose();
                Description_text = null;
            }

            if (loader != null)
            {
                loader.Dispose();
                loader = null;
            }

            if (MainUIView != null)
            {
                MainUIView.Dispose();
                MainUIView = null;
            }

            if (netWork_label != null)
            {
                netWork_label.Dispose();
                netWork_label = null;
            }

            if (Play != null)
            {
                Play.Dispose();
                Play = null;
            }

            if (recording != null)
            {
                recording.Dispose();
                recording = null;
            }

            if (Save_button != null)
            {
                Save_button.Dispose();
                Save_button = null;
            }

            if (saveLoader != null)
            {
                saveLoader.Dispose();
                saveLoader = null;
            }

            if (Scrollview != null)
            {
                Scrollview.Dispose();
                Scrollview = null;
            }

            if (Status_switch1 != null)
            {
                Status_switch1.Dispose();
                Status_switch1 = null;
            }

            if (Title_text != null)
            {
                Title_text.Dispose();
                Title_text = null;
            }
        }
Exemple #4
0
 /// <summary>
 /// save
 /// </summary>
 /// <returns></returns>
 public PassageDetailPage ClickSave()
 {
     Save_button.Wait(3).Click();
     return(new PassageDetailPage());
 }