示例#1
0
        public string Draw()
        {
            form.formMT.RoutingTable = routingTable;
            if (routing != null)
            {
                form.formMT.comboBoxRouting.SelectedValue = routing;
            }

            return(ProviderState.Draw(form, providerState));
        }
示例#2
0
        public static string Draw(IntentoTranslationProviderOptionsForm form, SmartRoutingState state)
        {
            if (state == null)
            {
                form.formMT.RoutingTable = new Dictionary <string, string>(defaultRoutingTable);
                form.formMT.comboBoxRouting.SelectedIndex = 0;
                ProviderState.Draw(form, null);
                return(null);
            }

            return(state.Draw());
        }
示例#3
0
        public static string Draw(IntentoTranslationProviderOptionsForm form, ProviderState state)
        {
            if (state == null)
            {
                form.formMT.groupBoxProvider.Enabled = false;
                Providers_ComboBox_BackColor_State(form.formMT, false);

                AuthState.Draw(form, null);
                return(null);
            }

            return(state.Draw());
        }