コード例 #1
0
 public addCredit(string id, string ip, showCredits credit)
 {
     InitializeComponent();
     this.id     = id;
     this.ip     = ip;
     this.credit = credit;
     showFoods();
 }
コード例 #2
0
        private void show_Click(object sender, EventArgs e)
        {
            if (comboBox1.Text != string.Empty)
            {
                string f        = comboBox1.Text;
                int    position = f.IndexOf("-");

                string cid = f.Substring(0, position);

                string      cname = f.Substring(position, f.Length - position);
                showCredits sc    = new showCredits(ip, cid, cname.Replace("-", ""), this);
                sc.Show();
            }
            else
            {
                string       message = "Lütfen İsim Seçiniz";
                DialogResult result  = MessageBox.Show(message);
            }
        }