public FormSelectClient() { InitializeComponent(); operation_doing = true; CwaitLoad = new UCWAITLOAD.UCwaitLoad(); panelSubContainer.Controls.Add(CwaitLoad); CwaitLoad.BringToFront(); CwaitLoad.Show(); bunifuMaterialTextboxSearch.KeyDown += (s, e) => { enter_key_down(s, e); }; get_clients(""); }
private void get_clients(string query) { if (CwaitLoad != null) { CwaitLoad.BringToFront(); CwaitLoad.Show(); } else { CwaitLoad = new UCWAITLOAD.UCwaitLoad(); panelSubContainer.Controls.Add(CwaitLoad); CwaitLoad.BringToFront(); CwaitLoad.Show(); } if (SelectClient != null) { panelSubContainer.Controls.Remove(SelectClient); } if (second_thread != null && second_thread.IsAlive) { second_thread.Abort(); } object query_obj = query; second_thread = new Thread(new ParameterizedThreadStart(start_uc_selectClietn)); second_thread.Start(query_obj); if (third_thread != null && third_thread.IsAlive) { third_thread.Abort(); } third_thread = new Thread(new ThreadStart(check_status_ucSelectClient)); third_thread.Start(); }
public FormSelectClient(Label label, ToolTip tip) { InitializeComponent(); operation_doing = true; CwaitLoad = new UCWAITLOAD.UCwaitLoad(); panelSubContainer.Controls.Add(CwaitLoad); CwaitLoad.BringToFront(); CwaitLoad.Show(); bunifuMaterialTextboxSearch.KeyDown += (s, e) => { enter_key_down(s, e); }; if (label != null) { write_client = label; } if (tip != null) { mainFormToolTip = tip; } get_clients(""); }