Esempio n. 1
0
 public void Init(string init_note, string[] init_items, int init_index, bool[] init_states, KbdDataHandler handler)
 {
     if (init_items.Length > MAX_NUMBER)
     {
         throw new Exception("Item number exceeds in choice wnd");
     }
     notelabel.Text = init_note;
     bMultiSelect   = (init_states != null) && (init_items.Length == init_states.Length);
     items          = init_items;
     if (bMultiSelect)
     {
         states = init_states;
     }
     else
     {
         index = init_index;
     }
     choice_handler = handler;
     if (init_items.Length != totalnum)
     {
         totalnum = init_items.Length;
         ReLayout();
     }
     UpdateState(0);
     //deep++;
     this.Show();
 }
Esempio n. 2
0
 public void Init(string init_note, string init_param, bool init_pwd, KbdDataHandler handler)
 {
     data.Remove(0, data.Length);
     note       = init_note;
     param      = init_param;
     password   = init_pwd;
     kbdhandler = handler;
     UpdateData();
     this.Show();
 }
Esempio n. 3
0
 public void Init(string init_note,string init_param, bool init_pwd, KbdDataHandler handler)
 {
     data.Remove(0, data.Length);
     note = init_note;
     param = init_param;
     password = init_pwd;
     kbdhandler = handler;
     UpdateData();
     this.Show();
 }
Esempio n. 4
0
        public void Init(string init_note, string init_param, bool init_pwd, KbdDataHandler handler)
        {
            data.Remove(0, data.Length);
            note       = init_note;
            param      = init_param;
            password   = init_pwd;
            kbdhandler = handler;

            btn_kscale.bOn     = false;
            btn_mscale.bOn     = false;
            btn_gscale.bOn     = false;
            btn_kscale.Visible = note.IndexOf("(ohm)") > 0;
            btn_mscale.Visible = note.IndexOf("(ohm)") > 0;
            //btn_gscale.Visible = note.IndexOf("(ohm)") > 0;
            deep++;
            UpdateData();
            this.Show();
        }
Esempio n. 5
0
 public void Init(string init_note, string[] init_items,int init_index, bool[] init_states, KbdDataHandler handler)
 {
     if (init_items.Length > MAX_NUMBER)
         throw new Exception("Item number exceeds in choice wnd");
     notelabel.Text = init_note;
     bMultiSelect = (init_states != null) && (init_items.Length == init_states.Length);
     items = init_items;
     if (bMultiSelect)
         states = init_states;
     else
         index = init_index;
     choice_handler = handler;
     if (init_items.Length != totalnum)
     {
         totalnum = init_items.Length;
         ReLayout();
     }
     UpdateState(0);
     deep++;
     this.Show();
 }
Esempio n. 6
0
        public void Init(string init_note, string init_param, bool init_pwd, KbdDataHandler handler)
        {
            data.Remove(0, data.Length);
            note = init_note;
            param = init_param;
            password = init_pwd;
            kbdhandler = handler;

            btn_kscale.bOn = false;
            btn_mscale.bOn = false;
            btn_gscale.bOn = false;
            btn_kscale.Visible = note.IndexOf("(ohm)") > 0;
            btn_mscale.Visible = note.IndexOf("(ohm)") > 0;
            //btn_gscale.Visible = note.IndexOf("(ohm)") > 0;
            //deep++;
            UpdateData();
            this.Show();
        }