コード例 #1
0
        /// <summary>
        /// Конструктор редактора.
        /// </summary>
        /// <param name="TabItemView">Собственный TAB компонент</param>
        public void Construct(HeaderedItemViewModel TabItemView)
        {
            this.TabItemView        = TabItemView;
            GeneralLogic.HeaderName = TabItemView.Header.ToString();

            Start();
            WindowActions();

            CustomTimer.Create(delegate(object sender, EventArgs e)
            {
                GeneralLogic.RequestMethod_SetComboBoxItem(ComboBox_RequestType);

                if (RequestDirectory != null)
                {
                    int NetworkUid = Guid.NewGuid().GetHashCode();

                    GeneralLogic.LoadRequestDirectory(this, NetworkUid);
                    LEditorNetworkActions.RequestParamsItemsGet_Confirm(this, NetworkUid);
                }
                else
                {
                    GeneralLogic.SetHeaderName(TabItemView);
                }
            }, new TimeSpan(0, 0, 0, 0, 500));
        }
コード例 #2
0
        internal void ComboBox_RequestType_SelectionChanged(object sender, SelectionChangedEventArgs e)
        {
            GeneralLogic.RequestMethod_SetComboBoxItem(ComboBox_RequestType);

            EditorRequestData.RequestLink =
                GeneralLogic.RequestLinkChanged(EditorRequestData.RequestLink);

            GeneralLogic.SetHeaderName(TabItemView);

            if (RequestDirectory != null && RequestDirectory.WebRequestId != 0 && GeneralLogic.RequestMethod != null)
            {
                var RequestItem = new WebRequestItem();
                RequestItem.Id     = RequestDirectory.WebRequestId;
                RequestItem.Method = GeneralLogic.RequestMethod;

                Sender.SendToServer("WebRequestItem.Update.Method", RequestItem);
            }
        }