public CreateForm(MainForm mainform, object sender)
        {
            InitializeComponent();
            mf = mainform;
            sndr = sender;

            switch (sndr.ToString())
            {
                case "User":
                    {
                        createTabControl.SelectTab(0);
                        currentTabIndex = 0;
                        break;
                    }
                case "Phone":
                    {
                        createTabControl.SelectTab(1);
                        currentTabIndex = 1;
                        break;
                    }
                case "Office Jack":
                    {
                        createTabControl.SelectTab(2);
                        currentTabIndex = 2;
                        break;
                    }
                case "Switch":
                    {
                        createTabControl.SelectTab(3);
                        currentTabIndex = 3;
                        break;
                    }
                default:
                    {
                        break;
                    }
            }

            openTab(currentTabIndex);
        }
 public CreatePatchToSwitchForm(MainForm mainForm)
 {
     InitializeComponent();
     mf = mainForm;
 }