Esempio n. 1
0
        void ReleaseDesignerOutlets()
        {
            if (SelectServerText != null)
            {
                SelectServerText.Dispose();
                SelectServerText = null;
            }

            if (HorizontalLine != null)
            {
                HorizontalLine.Dispose();
                HorizontalLine = null;
            }

            if (ScrollViewer != null)
            {
                ScrollViewer.Dispose();
                ScrollViewer = null;
            }

            if (ServersView != null)
            {
                ServersView.Dispose();
                ServersView = null;
            }
        }
        private void UpdateCaptionText(ServerSelectionType serverSelectionType)
        {
            if (SelectServerText == null)
            {
                return;
            }

            switch (serverSelectionType)
            {
            case ServerSelectionType.SingleServer:
                SelectServerText.StringValue = LocalizedStrings.Instance.LocalizedString("Button_SelectServer");
                break;

            case ServerSelectionType.EntryServer:
                SelectServerText.StringValue = LocalizedStrings.Instance.LocalizedString("Button_SelectEntryServer");
                break;

            case ServerSelectionType.ExitServer:
                SelectServerText.StringValue = LocalizedStrings.Instance.LocalizedString("Button_SelectExitServer");
                break;
            }

            SelectServerText.SizeToFit();
        }