public static RoboSep_UserProtocolList getInstance() { if (myUserProtocolList == null) { myUserProtocolList = new RoboSep_UserProtocolList(); } return(myUserProtocolList); }
private void openProtocolList() { // create user protocol list window myUserProtocolList = RoboSep_UserProtocolList.getInstance(); myUserProtocolList.strUserName = textBox_UserName.Text; // create all protocols list window myProtocolList = RoboSep_ProtocolList.getInstance(); myProtocolList.strUserName = textBox_UserName.Text; // show protocol list myProtocolList.Visible = false; // reset protocol list form and user protocol list // myProtocolList.resetForm(); // show protocol list control RoboSep_UserConsole.getInstance().Controls.Add(myProtocolList); RoboSep_UserConsole.getInstance().Controls.Remove(this); myProtocolList.Visible = true; }