Ejemplo n.º 1
0
        public static void BindDropDown(RadDropDownList dropdown, IEnumerable enumerable, string dataTextField, string dataValueField, bool addFirstEmptyItem = false)
        {
            dropdown.DataSource     = enumerable;
            dropdown.DataTextField  = dataTextField;
            dropdown.DataValueField = dataValueField;
            dropdown.DataBind();

            if (addFirstEmptyItem)
            {
                dropdown.Items.Insert(0, new DropDownListItem(String.Empty));
            }
        }
Ejemplo n.º 2
0
        private static void EventTextChanged(object sender, EventArgs e)
        {
            if (sender is RadDropDownList == false)
            {
                return;
            }
            RadDropDownList DList = sender as RadDropDownList;

            if (DList.FindStringExact(DList.Text) < 0)
            {
                DList.SelectedIndex = 0;
            }
        }
        private void BindStartStopSousRouteDDLs(bool isStartMode, DirectionBgr direction)
        {
            RadDropDownList ddlTroncon   = isStartMode ? ddlTronconStart : ddlTronconStop;
            RadDropDownList ddlSection   = isStartMode ? ddlSectionStart : ddlSectionStop;
            RadDropDownList ddlSousRoute = isStartMode ? ddlSousRouteStart : ddlSousRouteStop;

            if (ddlSection.SelectedItem != null)
            {
                if (direction != DirectionBgr.Unknown)
                {
                    var rtssFromRoute = isStartMode ? _rtssFromRouteStart : _rtssFromRouteStop;

                    if (direction == DirectionBgr.ForwardChaining)
                    {
                        ddlSousRoute.DataSource = (
                            from currentRTSS in rtssFromRoute
                            where currentRTSS.Section == (string)ddlSection.SelectedValue &&
                            currentRTSS.Troncon == (string)ddlTroncon.SelectedValue &&
                            (
                                currentRTSS.CodeSousRoute == "3" ||
                                currentRTSS.CodeCoteChaussee == "D" ||
                                currentRTSS.CodeCoteChaussee == "C")
                            orderby currentRTSS.SousRoute ascending
                            select currentRTSS.SousRoute)
                                                  .Distinct().ToList();
                    }
                    else if (direction == DirectionBgr.BackwardChaining)
                    {
                        ddlSousRoute.DataSource = (
                            from currentRTSS in rtssFromRoute
                            where currentRTSS.Section == (string)ddlSection.SelectedValue &&
                            currentRTSS.Troncon == (string)ddlTroncon.SelectedValue &&
                            (
                                currentRTSS.CodeCoteChaussee == "G" ||
                                currentRTSS.CodeCoteChaussee == "C")
                            orderby currentRTSS.SousRoute ascending
                            select currentRTSS.SousRoute)
                                                  .Distinct().ToList();
                    }
                }
                else
                {
                    ddlSousRoute.DataSource = null;
                }
            }
            else
            {
                ddlSousRoute.DataSource = null;
                //ddlSection.Enabled = false;
            }
        }
        private async Task ShowSpecificRtssc(bool isStartMode, BgrData bgrData)
        {
            if (bgrData == null)
            {
                throw new ArgumentNullException("bgrData");
            }

            TabControl tcAcqui    = isStartMode ? tcStartAcqui : tcStopAcqui;
            TabPage    tpRtssDdls = isStartMode ? tpStartRtssDdls : tpStopRtssDdls;

            RadDropDownList ddlRoute     = isStartMode ? ddlRouteStart : ddlRouteStop;
            RadDropDownList ddlTroncon   = isStartMode ? ddlTronconStart : ddlTronconStop;
            RadDropDownList ddlSection   = isStartMode ? ddlSectionStart : ddlSectionStop;
            RadDropDownList ddlSousRoute = isStartMode ? ddlSousRouteStart : ddlSousRouteStop;

            if (bgrData.Rtssc != null)
            {
                tcAcqui.SelectedTab = tpRtssDdls;

                if (GetSelectedDirection(isStartMode) != bgrData.Direction)
                {
                    ShowSpecificDirection(isStartMode, bgrData.Direction);
                    await HandleRouteSelectionChanged(isStartMode, (string)ddlRoute.SelectedValue);
                }

                if ((string)ddlRoute.SelectedValue != bgrData.Rtssc.Route)
                {
                    ddlRoute.SelectedValue = bgrData.Rtssc.Route;
                    await HandleRouteSelectionChanged(isStartMode, bgrData.Rtssc.Route);
                }
                if ((string)ddlTroncon.SelectedValue != bgrData.Rtssc.Troncon)
                {
                    ddlTroncon.SelectedValue = bgrData.Rtssc.Troncon;
                    await HandleTronconSelectionChanged(isStartMode);
                }
                if ((string)ddlSection.SelectedValue != bgrData.Rtssc.Section)
                {
                    ddlSection.SelectedValue = bgrData.Rtssc.Section;
                    await HandleSectionSelectionChanged(isStartMode);
                }
                if ((string)ddlSousRoute.SelectedValue != bgrData.Rtssc.SousRoute)
                {
                    ddlSousRoute.SelectedValue = bgrData.Rtssc.SousRoute;
                }
            }
            else
            {
                HideAllSpecificControls(isStartMode);
                MessageBox.Show("No RTSS to show", "Cannot show RTSS", MessageBoxButtons.OK, MessageBoxIcon.Warning);
            }
        }
        private void EnableRtsscControls(bool isStartMode, bool enable)
        {
            RadDropDownList ddlRoute     = isStartMode ? ddlRouteStart : ddlRouteStop;
            RadDropDownList ddlTroncon   = isStartMode ? ddlTronconStart : ddlTronconStop;
            RadDropDownList ddlSection   = isStartMode ? ddlSectionStart : ddlSectionStop;
            RadDropDownList ddlSousRoute = isStartMode ? ddlSousRouteStart : ddlSousRouteStop;
            MaskedTextBox   mtxtChainage = isStartMode ? mtxtChainageSelectionStart : mtxtChainageSelectionStop;

            ddlRoute.Enabled     = enable;
            ddlTroncon.Enabled   = enable;
            ddlSection.Enabled   = enable;
            ddlSousRoute.Enabled = enable;
            mtxtChainage.Enabled = enable;
        }
Ejemplo n.º 6
0
        protected void FilterRecordList(object sender, EventArgs e)
        {
            RadDropDownList rddl = (RadDropDownList)sender;

            if (rddl.ID == "rddlOffice")
            {
                LoadFieldTripList();
                LoadRecordList();
            }
            else if (rddl.ID == "rddlFieldTrip")
            {
                LoadRecordList();
            }
        }
Ejemplo n.º 7
0
        protected void rgHospitals_ItemDataBound(object source, GridItemEventArgs e)
        {
            if (e.Item.IsInEditMode)
            {
                GridEditableItem item = (GridEditableItem)e.Item;

                RadDropDownList ddlHospitals = (RadDropDownList)item.FindControl("ddlHospitals");
                ddlHospitals.DataSource = db.Hospitals.Where(p => p.wsc_id == currSHA.Site.Office.wsc_id).ToList();
                ddlHospitals.DataBind();

                HyperLink hlEmergInfoLink = (HyperLink)item.FindControl("hlEmergInfo3");
                hlEmergInfoLink.NavigateUrl = EmergInfoLink;
            }
        }
Ejemplo n.º 8
0
    protected void PaddingChanged(object sender, Telerik.Web.UI.DropDownListEventArgs e)
    {
        RadDropDownList dd_margin = (RadDropDownList)sender;

        if (dd_margin.ToolTip == "Overall")
        {
            dd_padding_bottom.SelectedIndex = dd_padding_left.SelectedIndex = dd_padding_right.SelectedIndex = dd_padding_top.SelectedIndex = 0;
        }
        else if (dd_margin.ToolTip == "Top" || dd_margin.ToolTip == "Bottom" || dd_margin.ToolTip == "Left" || dd_margin.ToolTip == "Right")
        {
            dd_padding_overall.SelectedIndex = 0;
        }
        BindMagazineOrBrochurePreview(tr_issue.Visible);
    }
Ejemplo n.º 9
0
    public static void PopulateActiveBranches(RadDropDownList dropdown, string userName, bool addEmptyOption = false)
    {
        BranchProvider branchProvider = UnityContainerHelper.Container.Resolve <BranchProvider>();

        dropdown.DataSource     = branchProvider.GetActiveBranches(userName);
        dropdown.DataTextField  = "Name";
        dropdown.DataValueField = "ID";
        dropdown.DataBind();

        if (addEmptyOption)
        {
            dropdown.Items.Insert(0, new DropDownListItem(String.Empty, String.Empty));
        }
    }
        protected void ScheduleList_FormCreated(object sender, SchedulerFormCreatedEventArgs e)
        {
            if (e.Container.Mode == SchedulerFormMode.Insert)
            {
                RadDropDownList tempActivityList = (RadDropDownList)e.Container.FindControl("ActivityList");
                tempActivityList.Items.Clear();

                var activitylist = GetActivityList();

                foreach (var item in activitylist)
                {
                    tempActivityList.Items.Add(new DropDownListItem {
                        Text = $"{item.VolunteerFullName} ({item.ActivityName})", Value = item.Id.ToString()
                    });
                }
            }

            if (e.Container.Mode == SchedulerFormMode.Edit)
            {
                RadDropDownList tempActivityList = (RadDropDownList)e.Container.FindControl("ActivityList");
                tempActivityList.Items.Clear();

                var activitylist = GetActivityList();

                foreach (var item in activitylist)
                {
                    tempActivityList.Items.Add(new DropDownListItem {
                        Text = $"{item.VolunteerFullName} ({item.ActivityName})", Value = item.Id.ToString()
                    });
                }

                var selectedAppointment = AppointmentList.Single(p => p.ID == e.Appointment.ID.ToString());

                if (selectedAppointment != null)
                {
                    var projectDetailActivity = selectedAppointment.Resources.SingleOrDefault(p => p.Key.ToString() == "ProjectDetailActivityId");

                    if (projectDetailActivity != null)
                    {
                        tempActivityList.SelectedValue = projectDetailActivity.Text;
                    }
                }

                RadTimePicker tempStartTime = (RadTimePicker)e.Container.FindControl("StartTime");
                tempStartTime.SelectedTime = new TimeSpan(e.Container.Appointment.Start.Hour, e.Container.Appointment.Start.Minute, e.Container.Appointment.Start.Second);

                RadTimePicker tempEndTime = (RadTimePicker)e.Container.FindControl("EndTime");
                tempEndTime.SelectedTime = new TimeSpan(e.Container.Appointment.End.Hour, e.Container.Appointment.End.Minute, e.Container.Appointment.End.Second);
            }
        }
Ejemplo n.º 11
0
        protected void RadGridExport_ItemDataBound(object sender, GridItemEventArgs e)
        {
            if (e.Item is GridEditFormItem && e.Item.IsInEditMode)
            {
                UserControl  MyUserControl = e.Item.FindControl(GridEditFormItem.EditFormUserControlID) as UserControl;
                GridDataItem parentItem    = (e.Item as GridEditFormItem).ParentItem;

                RadDropDownList ddlType = (RadDropDownList)MyUserControl.FindControl("DropDownListType");
                if (ddlType == null)
                {
                    return;
                }

                int   nOutputType = ddlType.SelectedIndex;
                Panel panelSMB    = (Panel)MyUserControl.FindControl("PanelSMB");
                Panel panelFTP    = (Panel)MyUserControl.FindControl("PanelFTP");
                Panel panelEmail  = (Panel)MyUserControl.FindControl("PanelEmail");
                Panel panelGoogle = (Panel)MyUserControl.FindControl("PanelGoogle");
                Panel panelS3     = (Panel)MyUserControl.FindControl("PanelS3");

                panelSMB.Visible    = false;
                panelFTP.Visible    = false;
                panelEmail.Visible  = false;
                panelGoogle.Visible = false;
                panelS3.Visible     = false;

                if (nOutputType == 1)
                {
                    panelFTP.Visible = true;
                }
                else if (nOutputType == 2)
                {
                    panelEmail.Visible = true;
                }
                else if (nOutputType == 3)
                {
                    panelGoogle.Visible = true;
                }
                else if (nOutputType == 4)
                {
                    panelS3.Visible = true;
                }
                else
                {
                    panelSMB.Visible = true;
                }

                Session["ConfigExportDetailsFormLoaded"] = false;
            }
        }
Ejemplo n.º 12
0
        private void comboBoxTileConfig_SelectedIndexChanged(object sender, Telerik.WinControls.UI.Data.PositionChangedEventArgs e)
        {
            RadDropDownList ddl = (RadDropDownList)sender;

            if (ddl.SelectedItem != null)
            {
                NetworkFunction.GetTileConfig((int)ddl.SelectedItem.Value);
                buttonConfigDelete.Enabled = false;
            }
            else
            {
                radButtonConfigModify.Enabled = false;
            }
        }
Ejemplo n.º 13
0
 protected void gridMain_ItemDataBound(object sender, GridItemEventArgs e)
 {
     if (e.Item is GridEditableItem && e.Item.IsInEditMode)
     {
         placeID = -1;
         Session.Remove("PlaceID");
         countryID = -1;
         Session.Remove("CountryID");
         GridEditableItem item         = e.Item as GridEditableItem;
         RadDropDownList  ddlPlaces    = item.FindControl("ddlPlaces") as RadDropDownList;
         RadDropDownList  ddlCountries = item.FindControl("ddlCountries") as RadDropDownList;
         TextBox          txtNameGR    = (TextBox)item["NameGR"].Controls[0];
         txtNameGR.Width = Unit.Pixel(300);
         TextBox txtNameEN = (TextBox)item["NameEN"].Controls[0];
         txtNameEN.Width = Unit.Pixel(300);
         try {
             EventB currEvent          = e.Item.DataItem as EventB;
             CountriesController ccont = new CountriesController();
             PlacesController    cont  = new PlacesController();
             ddlCountries.DataSource     = ccont.GetCountries();
             ddlCountries.DataTextField  = "NameGR";
             ddlCountries.DataValueField = "ID";
             ddlCountries.DataBind();
             if (currEvent != null)
             {
                 ddlCountries.SelectedIndex = ddlCountries.FindItemByValue(currEvent.Place.CountryID.ToString()).Index;
                 Session["CountryID"]       = currEvent.Place.CountryID;
                 ddlPlaces.DataSource       = cont.GetPlaces().Where(k => k.CountryID == currEvent.Place.CountryID);
                 ddlPlaces.DataTextField    = "NameGR";
                 ddlPlaces.DataValueField   = "ID";
                 ddlPlaces.DataBind();
                 ddlPlaces.SelectedIndex = ddlPlaces.FindItemByValue(currEvent.PlaceID.ToString()).Index;
                 Session["PlaceID"]      = currEvent.PlaceID;
             }
             else
             {
                 ddlCountries.SelectedIndex = 0;
                 Session["CountryID"]       = ddlCountries.SelectedItem.Value;
                 ddlPlaces.DataSource       = cont.GetPlaces().Where(k => k.CountryID == int.Parse(ddlCountries.SelectedItem.Value));
                 ddlPlaces.DataTextField    = "NameGR";
                 ddlPlaces.DataValueField   = "ID";
                 ddlPlaces.DataBind();
                 ddlPlaces.SelectedIndex = 0;
                 Session["PlaceID"]      = ddlPlaces.SelectedItem.Value;
             }
         }
         catch (Exception) { }
     }
 }
        protected void rddlw_SelectedIndexChanged(object sender, DropDownListEventArgs e)
        {
            // Now rebuild the datasource

            int seqnumber = 0;
            var itemList  = new List <INCFORM_LOSTTIME_HIST>();

            foreach (RepeaterItem losttimeitem in rptLostTime.Items)
            {
                var item = new INCFORM_LOSTTIME_HIST();

                Label lb = (Label)losttimeitem.FindControl("lbItemSeq");

                RadDropDownList rddlw = (RadDropDownList)losttimeitem.FindControl("rddlWorkStatus");
                //rddlw.SelectedIndexChanged += rddlw_SelectedIndexChanged;

                TextBox       tbr = (TextBox)losttimeitem.FindControl("tbRestrictDesc");
                RadDatePicker bd  = (RadDatePicker)losttimeitem.FindControl("rdpBeginDate");
                RadDatePicker md  = (RadDatePicker)losttimeitem.FindControl("rdpNextMedDate");
                RadDatePicker ed  = (RadDatePicker)losttimeitem.FindControl("rdpExpectedReturnDT");

                item.ITEM_DESCRIPTION = tbr.Text;
                item.BEGIN_DT         = bd.SelectedDate;
                //item.RETURN_TOWORK_DT = rd.SelectedDate;
                item.NEXT_MEDAPPT_DT    = md.SelectedDate;
                item.RETURN_EXPECTED_DT = ed.SelectedDate;

                rddlw.Items.Add(new DropDownListItem("", ""));
                List <EHSMetaData> statuses = EHSMetaDataMgr.SelectMetaDataList("WORK_STATUS");
                foreach (var s in statuses)
                {
                    rddlw.Items.Add(new DropDownListItem(s.Text, s.Value));
                }

                if (!string.IsNullOrEmpty(rddlw.SelectedValue) && (rddlw.SelectedValue != ""))
                {
                    item.WORK_STATUS = rddlw.SelectedValue;
                    if (!item.BEGIN_DT.HasValue)
                    {
                        item.BEGIN_DT = (WorkStatusIncident != null && WorkStatusIncident.INCIDENT_DT != null) && WorkStatusIncident.INCIDENT_DT > DateTime.MinValue ?  WorkStatusIncident.INCIDENT_DT.AddDays(1) :  DateTime.UtcNow.AddDays(1);
                    }
                }

                itemList.Add(item);
            }

            rptLostTime.DataSource = itemList;
            rptLostTime.DataBind();
        }
        protected void RadGrid1_UpdateCommand(object sender, GridCommandEventArgs e)
        {
            GridEditableItem editedItem     = e.Item as GridEditableItem;
            int       ID_Val                = Convert.ToInt32(editedItem.GetDataKeyValue("ID"));
            string    RepsName_Val          = (editedItem["RepsName"].Controls[0] as TextBox).Text;
            string    ParentsName_Val       = (editedItem["ParentsName"].Controls[0] as TextBox).Text;
            string    Email_Val             = (editedItem["Email"].Controls[0] as TextBox).Text;
            string    InstagramUsername_Val = (editedItem["InstagramUsername"].Controls[0] as TextBox).Text;
            string    RepsBirthday_Val      = (editedItem["RepsBirthday"].Controls[0] as TextBox).Text;
            string    PayPalEmail_Val       = (editedItem["PayPalEmail"].Controls[0] as TextBox).Text;
            RadEditor editor                = (RadEditor)editedItem.FindControl("txtRadGridRepsBioResume") as RadEditor;
            string    RepsBioResume_Val     = editor.Text;
            string    HaveSmallShop_inter   = "False";

            if (!String.IsNullOrEmpty((editedItem["HaveSmallShop"].Controls[0] as TextBox).Text) && (editedItem["HaveSmallShop"].Controls[0] as TextBox).Text == "Yes")
            {
                HaveSmallShop_inter = "True";
            }
            else
            {
                HaveSmallShop_inter = "False";
            }
            bool            HaveSmallShop_Val     = Convert.ToBoolean(HaveSmallShop_inter);
            string          SmallShopUsername_Val = (editedItem["SmallShopUsername"].Controls[0] as TextBox).Text;
            int             HowHear_Val           = App_Code.IGBrandRepReferralDO.GetHowHearID((editedItem["HowHearDesc"].Controls[0] as TextBox).Text);
            string          WhatDoYouWant_Val     = (editedItem["WhatDoYouWant"].Controls[0] as TextBox).Text;
            string          HasPaid_inter         = "False";
            RadDropDownList HasPaidList           = (RadDropDownList)editedItem.FindControl("ddlRadGridHasPaid") as RadDropDownList;

            if (!String.IsNullOrEmpty(HasPaidList.SelectedText) && (HasPaidList.SelectedText == "Yes"))
            {
                HasPaid_inter = "True";
            }
            else
            {
                HasPaid_inter = "False";
            }
            bool      HasPaid_Val             = Convert.ToBoolean(HasPaid_inter);
            string    PayPalInvoiceNumber_Val = (editedItem["PayPalInvoiceNumber"].Controls[0] as TextBox).Text;
            RadEditor editor2   = (RadEditor)editedItem.FindControl("txtRadGridNotes") as RadEditor;
            string    Notes_Val = editor2.Text;

            int RequestID = App_Code.IGBrandRepReferralDO.UpdateFeatureRequest(ID_Val, RepsName_Val, ParentsName_Val, Email_Val, InstagramUsername_Val, RepsBirthday_Val, PayPalEmail_Val, RepsBioResume_Val, HaveSmallShop_Val, SmallShopUsername_Val, HowHear_Val, WhatDoYouWant_Val, HasPaid_Val, PayPalInvoiceNumber_Val, Notes_Val);

            string submitMessage = "You have succussfully updated the record, you BEAUTIFUL WOMAN!! <3";
            string script        = "SuccessDialog(\" Update Successful! " + submitMessage + "\");";

            ScriptManager.RegisterStartupScript(this, this.GetType(), "SaveProgram", script, true);
        }
Ejemplo n.º 16
0
        private void InitializeDropDownEnum(Control control, PropertyDescriptor property)
        {
            RadDropDownList radDropDownList = control as RadDropDownList;

            if (radDropDownList == null)
            {
                return;
            }
            foreach (object obj in Enum.GetValues(property.PropertyType))
            {
                RadListDataItem radListDataItem = new RadListDataItem(obj.ToString(), obj);
                radDropDownList.Items.Add(radListDataItem);
            }
            radDropDownList.DropDownStyle = RadDropDownStyle.DropDownList;
        }
Ejemplo n.º 17
0
        private void SetFilterOperator(
            RadDropDownList comboBox,
            RadControl textBox,
            FilterDescriptor descriptor)
        {
            descriptor.Operator = (FilterOperator)comboBox.SelectedValue;
            bool flag = this.IsEditableFilterOperator(descriptor.Operator);

            textBox.Enabled = flag;
            if (!flag)
            {
                textBox.Text = string.Empty;
            }
            this.EnableNotCheckBox();
        }
    protected void UpdateDefaultTemplatesCount()
    {
        RadDropDownList dd = dd_num_templates;

        if (dd.Items.Count > 0 && dd.SelectedItem != null)
        {
            int count = 1;
            Int32.TryParse(dd.SelectedItem.Value, out count);

            String uqry = "UPDATE dbl_preferences SET DefaultMLATemplatesCount=@c WHERE UserID=@user_id";
            SQL.Update(uqry,
                       new String[] { "@c", "@user_id" },
                       new Object[] { count, hf_user_id.Value });
        }
    }
Ejemplo n.º 19
0
 private void buruhIDRadDropDownList_SelectedValueChanged(object sender, EventArgs e)
 {
     if (_iTipeBonus == 9 || _iTipeBonus == 25 || _iTipeBonus == 26)
     {
         //Get Gaji Pokok
         RadDropDownList rdl = (RadDropDownList)sender;
         if (rdl.SelectedValue != null)
         {
             using (sinarekDataSetTableAdapters.memberTableAdapter tbl = new sinarekDataSetTableAdapters.memberTableAdapter())
             {
                 unitvalueRadMaskedEditBox.Value = tbl.GetGajiPokok(1, int.Parse(rdl.SelectedValue.ToString()));
             }
         }
     }
 }
Ejemplo n.º 20
0
 /// <summary>
 /// Update System Theme According to Selection
 /// </summary>
 /// <param name="c"></param>
 /// <param name="themeName"></param>
 internal static void UpdateControlTheme(Control c, string themeName)
 {
     if (c is RadMaskedEditBox)
     {
         RadMaskedEditBox rm = (RadMaskedEditBox)c;
         rm.ThemeName = themeName;
     }
     if (c is RadTextBox)
     {
         RadTextBox txt = (RadTextBox)c;
         txt.ThemeName = themeName;
     }
     if (c is RadDropDownList)
     {
         RadDropDownList ddl = (RadDropDownList)c;
         ddl.ThemeName = themeName;
     }
     if (c is RadGridView)
     {
         RadGridView ddl = (RadGridView)c;
         ddl.ThemeName = themeName;
     }
     if (c is RadGroupBox)
     {
         RadGroupBox rg = (RadGroupBox)c;
         rg.ThemeName = themeName;
     }
     if (c is RadButton)
     {
         RadButton btn = (RadButton)c;
         btn.ThemeName = themeName;
     }
     if (c is RadDateTimePicker)
     {
         RadDateTimePicker dtp = (RadDateTimePicker)c;
         dtp.ThemeName = themeName;
     }
     if (c is RadPageView)
     {
         RadPageView pv = new RadPageView();
         pv.ThemeName = themeName;
     }
     //Also update theme for children
     foreach (Control ch in c.Controls)
     {
         UpdateControlTheme(ch, themeName);
     }
 }
 private AccessibleObject GetItemAccessibleObject(RadListDataItem item)
 {
     if (this.DropDown.OwnerDropDownListElement != null)
     {
         RadDropDownList control = this.DropDown.OwnerDropDownListElement.ElementTree.Control as RadDropDownList;
         if (control != null)
         {
             RadDropDownListAccessibleObject accessibilityObject = control.AccessibilityObject as RadDropDownListAccessibleObject;
             if (accessibilityObject != null)
             {
                 return((AccessibleObject)accessibilityObject.GetItemAccessibleObject(item));
             }
         }
     }
     return((AccessibleObject) new RadListDataItemAccessibleObject(item, (AccessibleObject)this));
 }
Ejemplo n.º 22
0
        private void Init()
        {
            this.Controls.Clear();

            _ddbTempClass = new RadDropDownList();
            _btnRefresh   = new RadButton();
            _listOverview = new RadListView();
            LoadLayoutTemplateName();
            CreatDropControls();
            InitRefreshBtn();
            CreatListView();
            this.Controls.Add(_ddbTempClass);
            this.Controls.Add(_btnRefresh);
            this.Controls.Add(_listOverview);
            _listOverview.BringToFront();
        }
Ejemplo n.º 23
0
        public static void PopulateOperations(RadDropDownList ddl)
        {
            try
            {
                List<Operation> operations = new MasterData().GetOperations();
                operations.Insert(0, new Operation() { OperationId = 0, OperationName = "Select Operation" });

                ddl.DataSource = operations;
                ddl.ValueMember = "OperationId";
                ddl.DisplayMember = "OperationName";
            }
            catch (Exception x)
            {
                FileLogger.LogError(x);
            }
        }
Ejemplo n.º 24
0
        public static void PopulateEmployees(RadDropDownList ddl, Roles role)
        {
            try
            {
                var employees = new UserData().GetEmployeesByRole((int)role).Select(c => new { EmployeeId = c.EmployeeId, EmployeeName = c.FirstName + " " + c.LastName}).ToList();
                employees.Insert(0, new { EmployeeId = 0, EmployeeName = "Select" });

                ddl.DataSource = employees;
                ddl.ValueMember = "EmployeeId";
                ddl.DisplayMember = "EmployeeName";
            }
            catch (Exception x)
            {
                FileLogger.LogError(x);
            }
        }
Ejemplo n.º 25
0
        public static void PopulateHospital(RadDropDownList ddl)
        {
            try
            {
                List<Hospital> hospitals = new MasterData().GetHospitals();
                hospitals.Insert(0, new Hospital() { HospitalId = 0, HospitalName = "Select Hospital" });

                ddl.DataSource = hospitals;
                ddl.ValueMember = "HospitalId";
                ddl.DisplayMember = "HospitalName";
            }
            catch (Exception x)
            {
                FileLogger.LogError(x);
            }
        }
Ejemplo n.º 26
0
        public static void PopulateRoles(RadDropDownList ddl)
        {
            try
            {
                List<Role> roles = new MasterData().GetRoles();
                roles.Insert(0, new Role() { RoleId = 0, RoleName = "Select" });

                ddl.DataSource = roles;
                ddl.ValueMember = "RoleId";
                ddl.DisplayMember = "RoleName";
            }
            catch (Exception x)
            {
                FileLogger.LogError(x);
            }
        }
Ejemplo n.º 27
0
        private void ReBindRepeater()
        {
            int seqnumber = 0;
            var itemList  = new List <INCFORM_LOSTTIME_HIST>();

            foreach (RepeaterItem losttimeitem in rptLostTime.Items)
            {
                var item = new INCFORM_LOSTTIME_HIST();

                Label lb = (Label)losttimeitem.FindControl("lbItemSeq");

                RadDropDownList rddlw = (RadDropDownList)losttimeitem.FindControl("rddlWorkStatus");
                //rddlw.SelectedIndexChanged += rddlw_SelectedIndexChanged;

                TextBox       tbr = (TextBox)losttimeitem.FindControl("tbRestrictDesc");
                RadDatePicker bd  = (RadDatePicker)losttimeitem.FindControl("rdpBeginDate");
                RadDatePicker rd  = (RadDatePicker)losttimeitem.FindControl("rdpReturnDate");
                RadDatePicker md  = (RadDatePicker)losttimeitem.FindControl("rdpNextMedDate");
                RadDatePicker ed  = (RadDatePicker)losttimeitem.FindControl("rdpExpectedReturnDT");

                rddlw.Items.Add(new DropDownListItem("[Select One]", ""));
                List <EHSMetaData> statuses = EHSMetaDataMgr.SelectMetaDataList("WORK_STATUS");
                foreach (var s in statuses)
                {
                    rddlw.Items.Add(new DropDownListItem(s.Text, s.Value));
                }

                if (!string.IsNullOrEmpty(rddlw.SelectedValue) && (rddlw.SelectedValue != "[Select One]"))
                {
                    item.WORK_STATUS = rddlw.SelectedValue;
                }

                seqnumber = Convert.ToInt32(lb.Text);

                item.ITEM_DESCRIPTION   = tbr.Text;
                item.ITEM_SEQ           = seqnumber;
                item.BEGIN_DT           = bd.SelectedDate;
                item.RETURN_TOWORK_DT   = rd.SelectedDate;
                item.NEXT_MEDAPPT_DT    = md.SelectedDate;
                item.RETURN_EXPECTED_DT = ed.SelectedDate;

                itemList.Add(item);
            }

            rptLostTime.DataSource = itemList;
            rptLostTime.DataBind();
        }
Ejemplo n.º 28
0
 protected void gridMain_ItemDataBound(object sender, GridItemEventArgs e)
 {
     if (e.Item is GridEditableItem && e.Item.IsInEditMode)
     {
         newID = -1;
         Session.Remove("CountryID");
         GridEditableItem item      = e.Item as GridEditableItem;
         TextBox          txtNameGR = (TextBox)item["NameGR"].Controls[0];
         txtNameGR.Width = Unit.Pixel(300);
         TextBox txtNameEN = (TextBox)item["NameEN"].Controls[0];
         txtNameEN.Width = Unit.Pixel(300);
         RadDropDownList list = item.FindControl("ddlCountries") as RadDropDownList;
         try {
             PlaceB currPlace         = e.Item.DataItem as PlaceB;
             CountriesController cont = new CountriesController();
             list.DataSource     = cont.GetCountries();
             list.DataTextField  = "NameGR";
             list.DataValueField = "ID";
             list.DataBind();
             if (currPlace != null)
             {
                 list.SelectedIndex   = list.FindItemByValue(currPlace.CountryID.ToString()).Index;
                 Session["CountryID"] = currPlace.CountryID;
             }
             else
             {
                 list.SelectedIndex   = 0;
                 Session["CountryID"] = list.SelectedItem.Value;
             }
         }
         catch (Exception) { }
     }
     if (e.Item is GridFilteringItem)
     {
         GridFilteringItem filterItem = (GridFilteringItem)e.Item;
         RadDropDownList   cflist     = (RadDropDownList)filterItem.FindControl("ddlCountryFilter");
         try {
             CountriesController ccont = new CountriesController();
             cflist.DataSource     = ccont.GetCountries();
             cflist.DataTextField  = "NameGR";
             cflist.DataValueField = "ID";
             cflist.DataBind();
             cflist.Items.Insert(0, new DropDownListItem("Κανένα Φίλτρο", "0"));
         }
         catch (Exception) { }
     }
 }
Ejemplo n.º 29
0
        protected void rgSANAL_ItemDataBound(object sender, GridItemEventArgs e)
        {
            if (e.Item.IsInEditMode)
            {
                GridEditableItem item = (GridEditableItem)e.Item;

                int period_id = Convert.ToInt32(item.GetDataKeyValue("period_id"));
                var period    = db.RecordAnalysisPeriods.FirstOrDefault(p => p.period_id == period_id);

                RadDropDownList rddlAnalyzedBy = (RadDropDownList)item.FindControl("rddlAnalyzedBy");
                RadDatePicker   rdpAnalyzedDt  = (RadDatePicker)item.FindControl("rdpAnalyzedDt");
                RadDropDownList rddlApprovedBy = (RadDropDownList)item.FindControl("rddlApprovedBy");
                RadDatePicker   rdpApprovedDt  = (RadDatePicker)item.FindControl("rdpApprovedDt");
                RadEditor       reSANAL        = (RadEditor)item.FindControl("reSANAL");

                //Analyzer & Approver
                var personnel = db.SP_Personnel_by_WSC_office_or_user_id(period.Record.Site.Office.wsc_id, 0, "", "no", "All", "no");
                rddlAnalyzedBy.DataSource = personnel;
                rddlAnalyzedBy.DataBind();
                rddlApprovedBy.DataSource = personnel;
                rddlApprovedBy.DataBind();
                if (!string.IsNullOrEmpty(period.analyzed_by))
                {
                    rddlAnalyzedBy.SelectedValue = period.analyzed_by;
                    rdpAnalyzedDt.SelectedDate   = period.analyzed_dt;
                }
                else
                {
                    rddlAnalyzedBy.Items.Insert(0, new DropDownListItem {
                        Value = "", Text = ""
                    });
                }
                if (!string.IsNullOrEmpty(period.approved_by))
                {
                    rddlApprovedBy.SelectedValue = period.approved_by;
                    rdpApprovedDt.SelectedDate   = period.approved_dt;
                }
                else
                {
                    rddlApprovedBy.Items.Insert(0, new DropDownListItem {
                        Value = "", Text = ""
                    });
                }

                reSANAL.Content = period.analysis_notes_va.FormatParagraphEdit();
            }
        }
Ejemplo n.º 30
0
    protected void rgUserMaster_UpdateCommand(object sender, Telerik.Web.UI.GridCommandEventArgs e)
    {
        try
        {
            GridEditableItem editedItem = e.Item as GridEditableItem;
            Hashtable        newValues  = new Hashtable();
            e.Item.OwnerTableView.ExtractValuesFromItem(newValues, editedItem);

            var User_Id = editedItem.GetDataKeyValue("User_Id").ToString();
            //Load controls
            RadTextBox txtEmail     = (RadTextBox)editedItem.FindControl("txtEmail");
            RadTextBox txtFirstName = (RadTextBox)editedItem.FindControl("txtFirstName");
            RadTextBox txtLastName  = (RadTextBox)editedItem.FindControl("txtLastName");

            RadTextBox      txtContact    = (RadTextBox)editedItem.FindControl("txtContact");
            RadDropDownList ddlPlant      = (RadDropDownList)editedItem.FindControl("ddlPlant");
            RadDropDownList ddlDepartment = (RadDropDownList)editedItem.FindControl("ddlDepartment");



            string qry     = "select User_Email from tbl_User_Master where User_Email='" + txtEmail.Text + "'   ";
            string emailID = DBUtils.SqlSelectScalar(new SqlCommand(qry));
            if (emailID != "")
            {
                rmw1.RadAlert("Duplicate Email", 400, 100, "Success", null);
                return;
            }


            //Update query
            var strsql = "UPDATE tbl_User_Master set User_Email = '" + txtEmail.Text + "', User_First_Name = '" + txtFirstName.Text + "',[User_Last_Name]='" + txtLastName.Text + "',[Contact_No]='" + txtContact.Text + "',[Plant_Id]='" + ddlPlant.SelectedValue + "',[Department_Id]='" + ddlDepartment.SelectedValue + "' where [User_Id] = '" + User_Id + "'";
            int i      = DBUtils.ExecuteSQLCommand(new SqlCommand(strsql));
            if (i > 0)
            {
                rmw1.RadAlert("User: "******" Updated Successfully", 400, 100, "Success", null);
            }
            else
            {
                rmw1.RadAlert("Error.", 400, 100, "Success", null);
                return;
            }
        }
        catch (Exception ex)
        {
            throw ex;
        }
    }
Ejemplo n.º 31
0
        //绑定下拉框
        /// <summary>
        /// 绑定下拉框
        /// </summary>
        /// <typeparam name="T"></typeparam>
        /// <param name="ddl">Telerik RadDropDownList</param>
        /// <param name="source">数据源对象列表</param>
        /// <param name="displayMember">显示的属性名称</param>
        /// <param name="valueMember">值的属性名称</param>
        public static void BindingDropDownList <T>(RadDropDownList ddl, List <T> source,
                                                   string displayMember, string valueMember)
        {
            if (ddl.Items.Count > 0)
            {
                ddl.Items.Clear();
            }

            ddl.DisplayMember = displayMember;
            ddl.ValueMember   = valueMember;
            ddl.DataSource    = source;

            if (ddl.Items.Count > 0)
            {
                ddl.SelectedIndex = 0;
            }
        }
Ejemplo n.º 32
0
 protected void gridMain_ItemDataBound(object sender, GridItemEventArgs e)
 {
     if (e.Item is GridFilteringItem)
     {
         GridFilteringItem filterItem = (GridFilteringItem)e.Item;
         RadDropDownList   ctflist    = (RadDropDownList)filterItem.FindControl("ddlCustomerFilter");
         try {
             CustomersController ctcont = new CustomersController();
             ctflist.DataSource     = ctcont.GetAllCustomers();
             ctflist.DataTextField  = "NameGR";
             ctflist.DataValueField = "ID";
             ctflist.DataBind();
             ctflist.Items.Insert(0, new DropDownListItem("Κανένα Φίλτρο", "0"));
         }
         catch (Exception) { }
     }
 }
Ejemplo n.º 33
0
 public static void SelectDropDownItem(RadDropDownList ddl, string value)
 {
     try
     {
         foreach (RadListDataItem item in ddl.Items)
         {
             if (item.Value.ToString() == value)
             {
                 item.Selected = true; return;
             }
         }
     }
     catch (Exception x)
     {
         FileLogger.LogError(x);
     }
 }
Ejemplo n.º 34
0
        private static void RebuildComboBoxItems(RadDropDownList comboBox, int count)
        {
            comboBox.BeginUpdate();

            comboBox.Items.Clear();

            for (int i = 0; i < count; i++)
            {
                comboBox.Items.Add(new RadListDataItem(string.Format("Row {0}", i + 1)));
            }

            comboBox.Items.Add(new RadListDataItem("New Row"));

            comboBox.SelectedIndex = count - 1;

            comboBox.EndUpdate();
        }
Ejemplo n.º 35
0
        protected void lbElement_Command(object sender, CommandEventArgs e)
        {
            pnlNote.Visible = false;

            int element_id = Convert.ToInt32(e.CommandArgument);

            hfElementID.Value = element_id.ToString();

            RadDropDownList rddl = new RadDropDownList();

            rddl.Items.Add(new DropDownListItem()
            {
                Value = element_id.ToString(), Selected = true
            });

            DropDownList_Logic(rddl);
        }
Ejemplo n.º 36
0
        /// <summary>
        /// Permite cargar un DropDownList con los meses de un año desde enero hasta el mes actual o todos los meses del año
        /// </summary>
        /// <param name="myDropDownList">El objecto DropDownList a llenar</param>
        /// <param name="ano">Año del cual se quieren cargar los meses</param>
        /// <param name="abreviado">Indica si el nombre del mes se va a abreviar o no, si se omite el valor por defecto es False, es decir que no se omite</param>
        /// <remarks>
        /// <list>Creado: Enero 08 de 2014 - Ing. David Pineda</list>
        /// </remarks>
        public static void cargarMesesToDropDownList(ref RadDropDownList myDropDownList, System.DateTime ano, bool abreviado = false)
        {
            if (ano == null)
            {
                throw new ArgumentNullException("El argumento ano no puede ser nulo");
            }

            int toMonth = 0;
            if (System.DateTime.Now.Year > ano.Year)
            {
                toMonth = 12;
            }
            else
            {
                toMonth = ano.Month;
            }
            try
            {
                myDropDownList.Items.Clear();
                for (int i = 1; i <= toMonth; i++)
                {
                    AddItemToDropDownList(ref myDropDownList, Microsoft.VisualBasic.DateAndTime.MonthName(i, abreviado), Convert.ToString(i), false);
                }
            }
            catch (ArgumentNullException ex)
            {
                throw ex;
            }
            catch (Exception ex)
            {
                throw ex;
            }
        }
Ejemplo n.º 37
0
        public static void PopulateDosage(RadDropDownList ddl)
        {
            try
            {
                List<DosageFrequency> dosage = new MasterData().GetDosageFrequencies();
                dosage.Insert(0, new DosageFrequency() { DosageFrequencyId = 0, DosageFrequencyName = "Select" });

                ddl.DataSource = dosage;
                ddl.ValueMember = "DosageFrequencyId";
                ddl.DisplayMember = "DosageFrequencyName";
            }
            catch (Exception x)
            {
                FileLogger.LogError(x);
            }
        }
Ejemplo n.º 38
0
        public static void PopulateDrug(RadDropDownList ddl)
        {
            try
            {
                List<Drug> drugs = new DrugData().GetDrugs();
                drugs.Insert(0, new Drug() { BrandId = 0, BrandName = "Select" });

                ddl.DataSource = drugs;
                ddl.ValueMember = "BrandId";
                ddl.DisplayMember = "BrandName";
            }
            catch (Exception x)
            {
                FileLogger.LogError(x);
            }
        }
Ejemplo n.º 39
0
        public static void PopulateExaminationTemplate(RadDropDownList ddl)
        {
            try
            {
                List<ExaminationTemplate> examination = new TemplateData().GetExaminationTemplate();
                examination.Insert(0, new ExaminationTemplate() { ExaminationTemplateId = 0, ExaminationTemplateName = "Select to add template" });

                ddl.DataSource = examination;
                ddl.ValueMember = "ExaminationTemplateId";
                ddl.DisplayMember = "ExaminationTemplateName";
            }
            catch (Exception x)
            {
                FileLogger.LogError(x);
            }
        }
Ejemplo n.º 40
0
        /// <summary>
        /// Metodo que carga un registro a un DropDownList
        /// </summary>
        /// <param name="cboDropDownList">Control DropDownList al que se le van a cargar los datos</param>
        /// <param name="strText">Texto del registro</param>
        /// <param name="strValue">Valor del registro</param>
        /// <param name="blnAddFirstItem">True si desea adicionarlo al inicio o False de lo contrario</param>
        /// <remarks>
        /// <list>Creaciòn: Jul 12/2013 - Ing. Paulo Cesar Pacheco Tovar</list>
        /// </remarks>
        public static void AddItemToDropDownList(ref RadDropDownList cboDropDownList, string strText, string strValue, bool blnAddFirstItem = false)
        {
            if (cboDropDownList == null)
            {
                throw new ArgumentNullException("El argumento cboDropDownList no puede ser nulo");
            }

            if (strValue == string.Empty)
            {
                throw new ArgumentException("El argumento strValue no puede estar vacio");
            }

            DropDownListItem objListItem = new DropDownListItem(strText, strValue);

            try
            {
                if (blnAddFirstItem)
                {
                    cboDropDownList.Items.Insert(0, objListItem);
                }
                else
                {
                    cboDropDownList.Items.Add(objListItem);
                }
            }
            catch (Exception ex)
            {
                throw ex;
            }
        }
Ejemplo n.º 41
0
        public static void PopulateImaging(RadDropDownList ddl)
        {
            try
            {
                List<Imaging> imaging = new MasterData().GetImagings();
                imaging.Insert(0, new Imaging() { ImagingId = 0, ImagingName = "Select" });

                ddl.DataSource = imaging;
                ddl.ValueMember = "ImagingId";
                ddl.DisplayMember = "ImagingName";
            }
            catch (Exception x)
            {
                FileLogger.LogError(x);
            }
        }
 /// <summary>
 /// Required method for Designer support - do not modify
 /// the contents of this method with the code editor.
 /// </summary>
 private void InitializeComponent()
 {
     Telerik.WinControls.UI.ListViewDetailColumn listViewDetailColumn1 = new Telerik.WinControls.UI.ListViewDetailColumn("Column 0", "Версия");
     Telerik.WinControls.UI.ListViewDetailColumn listViewDetailColumn2 = new Telerik.WinControls.UI.ListViewDetailColumn("Column 1", "Тип");
     Telerik.WinControls.UI.ListViewDetailColumn listViewDetailColumn3 = new Telerik.WinControls.UI.ListViewDetailColumn("Column 2", "Зависимость");
     System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(LauncherForm));
     Telerik.WinControls.UI.RadListDataItem radListDataItem1 = new Telerik.WinControls.UI.RadListDataItem();
     this.vs12theme = new Telerik.WinControls.Themes.VisualStudio2012DarkTheme();
     this.mainPageView = new Telerik.WinControls.UI.RadPageView();
     this.News = new Telerik.WinControls.UI.RadPageViewPage();
     this.newsBrowser = new System.Windows.Forms.WebBrowser();
     this.webPanel = new Telerik.WinControls.UI.RadPanel();
     this.BackWebButton = new Telerik.WinControls.UI.RadButton();
     this.ForwardWebButton = new Telerik.WinControls.UI.RadButton();
     this.ConsolePage = new Telerik.WinControls.UI.RadPageViewPage();
     this.logBox = new System.Windows.Forms.RichTextBox();
     this.ConsoleOptionsPanel = new Telerik.WinControls.UI.RadPanel();
     this.SetToClipboardButton = new Telerik.WinControls.UI.RadButton();
     this.DebugModeButton = new Telerik.WinControls.UI.RadToggleButton();
     this.EditVersions = new Telerik.WinControls.UI.RadPageViewPage();
     this.versionsListView = new Telerik.WinControls.UI.RadListView();
     this.AboutPage = new Telerik.WinControls.UI.RadPageViewPage();
     this.AboutPageView = new Telerik.WinControls.UI.RadPageView();
     this.AboutPageViewPage = new Telerik.WinControls.UI.RadPageViewPage();
     this.radScrollablePanel2 = new Telerik.WinControls.UI.RadScrollablePanel();
     this.AboutVersion = new Telerik.WinControls.UI.RadLabel();
     this.label6 = new System.Windows.Forms.Label();
     this.MCofflineDescLabel = new System.Windows.Forms.Label();
     this.radLabel1 = new Telerik.WinControls.UI.RadLabel();
     this.PartnersLabel = new Telerik.WinControls.UI.RadLabel();
     this.CopyrightInfoLabel = new System.Windows.Forms.Label();
     this.label3 = new System.Windows.Forms.Label();
     this.DevInfoLabel = new System.Windows.Forms.Label();
     this.label5 = new System.Windows.Forms.Label();
     this.GratitudesDescLabel = new System.Windows.Forms.Label();
     this.GratitudesLabel = new Telerik.WinControls.UI.RadLabel();
     this.LicensesPage = new Telerik.WinControls.UI.RadPageViewPage();
     this.licensePageView = new Telerik.WinControls.UI.RadPageView();
     this.FreeLauncherLicense = new Telerik.WinControls.UI.RadPageViewPage();
     this.FreeLauncherLicenseText = new Telerik.WinControls.UI.RadLabel();
     this.dotMCLauncherLicense = new Telerik.WinControls.UI.RadPageViewPage();
     this.dotMCLauncherLicenseText = new Telerik.WinControls.UI.RadLabel();
     this.SettingsPage = new Telerik.WinControls.UI.RadPageViewPage();
     this.radScrollablePanel1 = new Telerik.WinControls.UI.RadScrollablePanel();
     this.radGroupBox2 = new Telerik.WinControls.UI.RadGroupBox();
     this.CloseGameOutput = new Telerik.WinControls.UI.RadCheckBox();
     this.UseGamePrefix = new Telerik.WinControls.UI.RadCheckBox();
     this.EnableMinecraftLogging = new Telerik.WinControls.UI.RadCheckBox();
     this.radGroupBox1 = new Telerik.WinControls.UI.RadGroupBox();
     this.radLabel4 = new Telerik.WinControls.UI.RadLabel();
     this.LangDropDownList = new Telerik.WinControls.UI.RadDropDownList();
     this.EnableMinecraftUpdateAlerts = new Telerik.WinControls.UI.RadCheckBox();
     this.radCheckBox1 = new Telerik.WinControls.UI.RadCheckBox();
     this.StatusBar = new Telerik.WinControls.UI.RadProgressBar();
     this.radPanel1 = new Telerik.WinControls.UI.RadPanel();
     this.DeleteProfileButton = new Telerik.WinControls.UI.RadButton();
     this.ManageUsersButton = new Telerik.WinControls.UI.RadButton();
     this.NicknameDropDownList = new Telerik.WinControls.UI.RadDropDownList();
     this.SelectedVersion = new System.Windows.Forms.Label();
     this.LogoBox = new System.Windows.Forms.PictureBox();
     this.LaunchButton = new Telerik.WinControls.UI.RadButton();
     this.profilesDropDownBox = new Telerik.WinControls.UI.RadDropDownList();
     this.EditProfile = new Telerik.WinControls.UI.RadButton();
     this.AddProfile = new Telerik.WinControls.UI.RadButton();
     ((System.ComponentModel.ISupportInitialize)(this.mainPageView)).BeginInit();
     this.mainPageView.SuspendLayout();
     this.News.SuspendLayout();
     ((System.ComponentModel.ISupportInitialize)(this.webPanel)).BeginInit();
     this.webPanel.SuspendLayout();
     ((System.ComponentModel.ISupportInitialize)(this.BackWebButton)).BeginInit();
     ((System.ComponentModel.ISupportInitialize)(this.ForwardWebButton)).BeginInit();
     this.ConsolePage.SuspendLayout();
     ((System.ComponentModel.ISupportInitialize)(this.ConsoleOptionsPanel)).BeginInit();
     this.ConsoleOptionsPanel.SuspendLayout();
     ((System.ComponentModel.ISupportInitialize)(this.SetToClipboardButton)).BeginInit();
     ((System.ComponentModel.ISupportInitialize)(this.DebugModeButton)).BeginInit();
     this.EditVersions.SuspendLayout();
     ((System.ComponentModel.ISupportInitialize)(this.versionsListView)).BeginInit();
     this.AboutPage.SuspendLayout();
     ((System.ComponentModel.ISupportInitialize)(this.AboutPageView)).BeginInit();
     this.AboutPageView.SuspendLayout();
     this.AboutPageViewPage.SuspendLayout();
     ((System.ComponentModel.ISupportInitialize)(this.radScrollablePanel2)).BeginInit();
     this.radScrollablePanel2.PanelContainer.SuspendLayout();
     this.radScrollablePanel2.SuspendLayout();
     ((System.ComponentModel.ISupportInitialize)(this.AboutVersion)).BeginInit();
     ((System.ComponentModel.ISupportInitialize)(this.radLabel1)).BeginInit();
     ((System.ComponentModel.ISupportInitialize)(this.PartnersLabel)).BeginInit();
     ((System.ComponentModel.ISupportInitialize)(this.GratitudesLabel)).BeginInit();
     this.LicensesPage.SuspendLayout();
     ((System.ComponentModel.ISupportInitialize)(this.licensePageView)).BeginInit();
     this.licensePageView.SuspendLayout();
     this.FreeLauncherLicense.SuspendLayout();
     ((System.ComponentModel.ISupportInitialize)(this.FreeLauncherLicenseText)).BeginInit();
     this.dotMCLauncherLicense.SuspendLayout();
     ((System.ComponentModel.ISupportInitialize)(this.dotMCLauncherLicenseText)).BeginInit();
     this.SettingsPage.SuspendLayout();
     ((System.ComponentModel.ISupportInitialize)(this.radScrollablePanel1)).BeginInit();
     this.radScrollablePanel1.PanelContainer.SuspendLayout();
     this.radScrollablePanel1.SuspendLayout();
     ((System.ComponentModel.ISupportInitialize)(this.radGroupBox2)).BeginInit();
     this.radGroupBox2.SuspendLayout();
     ((System.ComponentModel.ISupportInitialize)(this.CloseGameOutput)).BeginInit();
     ((System.ComponentModel.ISupportInitialize)(this.UseGamePrefix)).BeginInit();
     ((System.ComponentModel.ISupportInitialize)(this.EnableMinecraftLogging)).BeginInit();
     ((System.ComponentModel.ISupportInitialize)(this.radGroupBox1)).BeginInit();
     this.radGroupBox1.SuspendLayout();
     ((System.ComponentModel.ISupportInitialize)(this.radLabel4)).BeginInit();
     ((System.ComponentModel.ISupportInitialize)(this.LangDropDownList)).BeginInit();
     ((System.ComponentModel.ISupportInitialize)(this.EnableMinecraftUpdateAlerts)).BeginInit();
     ((System.ComponentModel.ISupportInitialize)(this.radCheckBox1)).BeginInit();
     ((System.ComponentModel.ISupportInitialize)(this.StatusBar)).BeginInit();
     ((System.ComponentModel.ISupportInitialize)(this.radPanel1)).BeginInit();
     this.radPanel1.SuspendLayout();
     ((System.ComponentModel.ISupportInitialize)(this.DeleteProfileButton)).BeginInit();
     ((System.ComponentModel.ISupportInitialize)(this.ManageUsersButton)).BeginInit();
     ((System.ComponentModel.ISupportInitialize)(this.NicknameDropDownList)).BeginInit();
     ((System.ComponentModel.ISupportInitialize)(this.LogoBox)).BeginInit();
     ((System.ComponentModel.ISupportInitialize)(this.LaunchButton)).BeginInit();
     ((System.ComponentModel.ISupportInitialize)(this.profilesDropDownBox)).BeginInit();
     ((System.ComponentModel.ISupportInitialize)(this.EditProfile)).BeginInit();
     ((System.ComponentModel.ISupportInitialize)(this.AddProfile)).BeginInit();
     ((System.ComponentModel.ISupportInitialize)(this)).BeginInit();
     this.SuspendLayout();
     //
     // mainPageView
     //
     this.mainPageView.Controls.Add(this.News);
     this.mainPageView.Controls.Add(this.ConsolePage);
     this.mainPageView.Controls.Add(this.EditVersions);
     this.mainPageView.Controls.Add(this.AboutPage);
     this.mainPageView.Dock = System.Windows.Forms.DockStyle.Fill;
     this.mainPageView.Location = new System.Drawing.Point(0, 0);
     this.mainPageView.Name = "mainPageView";
     //
     //
     //
     this.mainPageView.RootElement.Alignment = System.Drawing.ContentAlignment.TopLeft;
     this.mainPageView.RootElement.AngleTransform = 0F;
     this.mainPageView.RootElement.FlipText = false;
     this.mainPageView.RootElement.Margin = new System.Windows.Forms.Padding(0);
     this.mainPageView.RootElement.TextOrientation = System.Windows.Forms.Orientation.Horizontal;
     this.mainPageView.SelectedPage = this.News;
     this.mainPageView.Size = new System.Drawing.Size(858, 363);
     this.mainPageView.TabIndex = 2;
     this.mainPageView.ThemeName = "VisualStudio2012Dark";
     ((Telerik.WinControls.UI.RadPageViewStripElement)(this.mainPageView.GetChildAt(0))).StripButtons = Telerik.WinControls.UI.StripViewButtons.None;
     //
     // News
     //
     this.News.Controls.Add(this.newsBrowser);
     this.News.Controls.Add(this.webPanel);
     this.News.ItemSize = new System.Drawing.SizeF(65F, 24F);
     this.News.Location = new System.Drawing.Point(5, 30);
     this.News.Name = "News";
     this.News.Size = new System.Drawing.Size(848, 328);
     this.News.Text = "НОВОСТИ";
     //
     // newsBrowser
     //
     this.newsBrowser.Dock = System.Windows.Forms.DockStyle.Fill;
     this.newsBrowser.Location = new System.Drawing.Point(0, 0);
     this.newsBrowser.MinimumSize = new System.Drawing.Size(20, 20);
     this.newsBrowser.Name = "newsBrowser";
     this.newsBrowser.ScriptErrorsSuppressed = true;
     this.newsBrowser.Size = new System.Drawing.Size(848, 308);
     this.newsBrowser.TabIndex = 0;
     this.newsBrowser.Url = new System.Uri("http://mcupdate.tumblr.com/", System.UriKind.Absolute);
     this.newsBrowser.Navigated += new System.Windows.Forms.WebBrowserNavigatedEventHandler(this.newsBrowser_Navigated);
     this.newsBrowser.Navigating += new System.Windows.Forms.WebBrowserNavigatingEventHandler(this.newsBrowser_Navigating);
     //
     // webPanel
     //
     this.webPanel.Controls.Add(this.BackWebButton);
     this.webPanel.Controls.Add(this.ForwardWebButton);
     this.webPanel.Dock = System.Windows.Forms.DockStyle.Bottom;
     this.webPanel.Location = new System.Drawing.Point(0, 308);
     this.webPanel.Name = "webPanel";
     //
     //
     //
     this.webPanel.RootElement.Alignment = System.Drawing.ContentAlignment.TopLeft;
     this.webPanel.RootElement.AngleTransform = 0F;
     this.webPanel.RootElement.FlipText = false;
     this.webPanel.RootElement.Margin = new System.Windows.Forms.Padding(0);
     this.webPanel.RootElement.TextOrientation = System.Windows.Forms.Orientation.Horizontal;
     this.webPanel.Size = new System.Drawing.Size(848, 20);
     this.webPanel.TabIndex = 1;
     this.webPanel.ThemeName = "VisualStudio2012Dark";
     this.webPanel.Visible = false;
     //
     // BackWebButton
     //
     this.BackWebButton.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
     this.BackWebButton.Location = new System.Drawing.Point(720, 0);
     this.BackWebButton.Name = "BackWebButton";
     //
     //
     //
     this.BackWebButton.RootElement.Alignment = System.Drawing.ContentAlignment.TopLeft;
     this.BackWebButton.RootElement.AngleTransform = 0F;
     this.BackWebButton.RootElement.FlipText = false;
     this.BackWebButton.RootElement.Margin = new System.Windows.Forms.Padding(0);
     this.BackWebButton.RootElement.TextOrientation = System.Windows.Forms.Orientation.Horizontal;
     this.BackWebButton.Size = new System.Drawing.Size(64, 17);
     this.BackWebButton.TabIndex = 1;
     this.BackWebButton.Text = "<";
     this.BackWebButton.ThemeName = "VisualStudio2012Dark";
     this.BackWebButton.Click += new System.EventHandler(this.backWebButton_Click);
     //
     // ForwardWebButton
     //
     this.ForwardWebButton.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
     this.ForwardWebButton.Location = new System.Drawing.Point(784, 0);
     this.ForwardWebButton.Name = "ForwardWebButton";
     //
     //
     //
     this.ForwardWebButton.RootElement.Alignment = System.Drawing.ContentAlignment.TopLeft;
     this.ForwardWebButton.RootElement.AngleTransform = 0F;
     this.ForwardWebButton.RootElement.FlipText = false;
     this.ForwardWebButton.RootElement.Margin = new System.Windows.Forms.Padding(0);
     this.ForwardWebButton.RootElement.TextOrientation = System.Windows.Forms.Orientation.Horizontal;
     this.ForwardWebButton.Size = new System.Drawing.Size(64, 17);
     this.ForwardWebButton.TabIndex = 0;
     this.ForwardWebButton.Text = ">";
     this.ForwardWebButton.ThemeName = "VisualStudio2012Dark";
     this.ForwardWebButton.Click += new System.EventHandler(this.forwardWebButton_Click);
     //
     // ConsolePage
     //
     this.ConsolePage.Controls.Add(this.logBox);
     this.ConsolePage.Controls.Add(this.ConsoleOptionsPanel);
     this.ConsolePage.ItemSize = new System.Drawing.SizeF(65F, 24F);
     this.ConsolePage.Location = new System.Drawing.Point(5, 30);
     this.ConsolePage.Name = "ConsolePage";
     this.ConsolePage.Size = new System.Drawing.Size(848, 328);
     this.ConsolePage.Text = "КОНСОЛЬ";
     //
     // logBox
     //
     this.logBox.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
     this.logBox.Dock = System.Windows.Forms.DockStyle.Fill;
     this.logBox.Font = new System.Drawing.Font("Consolas", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(204)));
     this.logBox.Location = new System.Drawing.Point(0, 0);
     this.logBox.Name = "logBox";
     this.logBox.ReadOnly = true;
     this.logBox.ScrollBars = System.Windows.Forms.RichTextBoxScrollBars.Vertical;
     this.logBox.Size = new System.Drawing.Size(848, 299);
     this.logBox.TabIndex = 1;
     this.logBox.Text = "";
     this.logBox.TextChanged += new System.EventHandler(this.logBox_TextChanged);
     //
     // ConsoleOptionsPanel
     //
     this.ConsoleOptionsPanel.Controls.Add(this.SetToClipboardButton);
     this.ConsoleOptionsPanel.Controls.Add(this.DebugModeButton);
     this.ConsoleOptionsPanel.Dock = System.Windows.Forms.DockStyle.Bottom;
     this.ConsoleOptionsPanel.Location = new System.Drawing.Point(0, 299);
     this.ConsoleOptionsPanel.Name = "ConsoleOptionsPanel";
     this.ConsoleOptionsPanel.Size = new System.Drawing.Size(848, 29);
     this.ConsoleOptionsPanel.TabIndex = 2;
     this.ConsoleOptionsPanel.ThemeName = "VisualStudio2012Dark";
     //
     // SetToClipboardButton
     //
     this.SetToClipboardButton.Location = new System.Drawing.Point(7, 3);
     this.SetToClipboardButton.Name = "SetToClipboardButton";
     this.SetToClipboardButton.Size = new System.Drawing.Size(131, 23);
     this.SetToClipboardButton.TabIndex = 1;
     this.SetToClipboardButton.Text = "Скопировать в буфер";
     this.SetToClipboardButton.ThemeName = "VisualStudio2012Dark";
     this.SetToClipboardButton.Click += new System.EventHandler(this.SetToClipboardButton_Click);
     //
     // DebugModeButton
     //
     this.DebugModeButton.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
     this.DebugModeButton.Location = new System.Drawing.Point(710, 3);
     this.DebugModeButton.Name = "DebugModeButton";
     this.DebugModeButton.Size = new System.Drawing.Size(131, 23);
     this.DebugModeButton.TabIndex = 0;
     this.DebugModeButton.Text = "Debug Mode";
     this.DebugModeButton.ThemeName = "VisualStudio2012Dark";
     //
     // EditVersions
     //
     this.EditVersions.Controls.Add(this.versionsListView);
     this.EditVersions.ItemSize = new System.Drawing.SizeF(145F, 24F);
     this.EditVersions.Location = new System.Drawing.Point(5, 30);
     this.EditVersions.Name = "EditVersions";
     this.EditVersions.Size = new System.Drawing.Size(848, 328);
     this.EditVersions.Text = "УПРАВЛЕНИЕ ВЕРСИЯМИ";
     //
     // versionsListView
     //
     this.versionsListView.AllowColumnReorder = false;
     this.versionsListView.AllowColumnResize = false;
     this.versionsListView.AllowEdit = false;
     this.versionsListView.AllowRemove = false;
     this.versionsListView.BackgroundImageLayout = System.Windows.Forms.ImageLayout.None;
     this.versionsListView.CheckOnClickMode = Telerik.WinControls.UI.CheckOnClickMode.FirstClick;
     listViewDetailColumn1.HeaderText = "Версия";
     listViewDetailColumn2.HeaderText = "Тип";
     listViewDetailColumn2.Width = 100F;
     listViewDetailColumn3.HeaderText = "Зависимость";
     listViewDetailColumn3.Width = 100F;
     this.versionsListView.Columns.AddRange(new Telerik.WinControls.UI.ListViewDetailColumn[] {
     listViewDetailColumn1,
     listViewDetailColumn2,
     listViewDetailColumn3});
     this.versionsListView.Dock = System.Windows.Forms.DockStyle.Fill;
     this.versionsListView.EnableColumnSort = true;
     this.versionsListView.EnableFiltering = true;
     this.versionsListView.EnableSorting = true;
     this.versionsListView.HorizontalScrollState = Telerik.WinControls.UI.ScrollState.AlwaysHide;
     this.versionsListView.ItemSpacing = -1;
     this.versionsListView.Location = new System.Drawing.Point(0, 0);
     this.versionsListView.Name = "versionsListView";
     //
     //
     //
     this.versionsListView.RootElement.Alignment = System.Drawing.ContentAlignment.TopLeft;
     this.versionsListView.RootElement.AngleTransform = 0F;
     this.versionsListView.RootElement.FlipText = false;
     this.versionsListView.RootElement.Margin = new System.Windows.Forms.Padding(0);
     this.versionsListView.RootElement.TextOrientation = System.Windows.Forms.Orientation.Horizontal;
     this.versionsListView.SelectLastAddedItem = false;
     this.versionsListView.ShowItemToolTips = false;
     this.versionsListView.Size = new System.Drawing.Size(848, 328);
     this.versionsListView.TabIndex = 0;
     this.versionsListView.ThemeName = "VisualStudio2012Dark";
     this.versionsListView.VerticalScrollState = Telerik.WinControls.UI.ScrollState.AlwaysShow;
     this.versionsListView.ViewType = Telerik.WinControls.UI.ListViewType.DetailsView;
     this.versionsListView.ItemMouseClick += new Telerik.WinControls.UI.ListViewItemEventHandler(this.versionsListView_ItemMouseClick);
     //
     // AboutPage
     //
     this.AboutPage.Controls.Add(this.AboutPageView);
     this.AboutPage.ItemSize = new System.Drawing.SizeF(79F, 24F);
     this.AboutPage.Location = new System.Drawing.Point(5, 30);
     this.AboutPage.Name = "AboutPage";
     this.AboutPage.Size = new System.Drawing.Size(848, 328);
     this.AboutPage.Text = "О ЛАУНЧЕРЕ";
     //
     // AboutPageView
     //
     this.AboutPageView.Controls.Add(this.AboutPageViewPage);
     this.AboutPageView.Controls.Add(this.LicensesPage);
     this.AboutPageView.Controls.Add(this.SettingsPage);
     this.AboutPageView.Dock = System.Windows.Forms.DockStyle.Fill;
     this.AboutPageView.Location = new System.Drawing.Point(0, 0);
     this.AboutPageView.Name = "AboutPageView";
     //
     //
     //
     this.AboutPageView.RootElement.Alignment = System.Drawing.ContentAlignment.TopLeft;
     this.AboutPageView.RootElement.AngleTransform = 0F;
     this.AboutPageView.RootElement.FlipText = false;
     this.AboutPageView.RootElement.Margin = new System.Windows.Forms.Padding(0);
     this.AboutPageView.RootElement.TextOrientation = System.Windows.Forms.Orientation.Horizontal;
     this.AboutPageView.SelectedPage = this.AboutPageViewPage;
     this.AboutPageView.Size = new System.Drawing.Size(848, 328);
     this.AboutPageView.TabIndex = 9;
     this.AboutPageView.ThemeName = "VisualStudio2012Dark";
     ((Telerik.WinControls.UI.RadPageViewStripElement)(this.AboutPageView.GetChildAt(0))).StripButtons = Telerik.WinControls.UI.StripViewButtons.None;
     ((Telerik.WinControls.UI.RadPageViewStripElement)(this.AboutPageView.GetChildAt(0))).ItemAlignment = Telerik.WinControls.UI.StripViewItemAlignment.Center;
     ((Telerik.WinControls.UI.RadPageViewStripElement)(this.AboutPageView.GetChildAt(0))).ItemFitMode = Telerik.WinControls.UI.StripViewItemFitMode.Fill;
     ((Telerik.WinControls.UI.RadPageViewStripElement)(this.AboutPageView.GetChildAt(0))).StripAlignment = Telerik.WinControls.UI.StripViewAlignment.Bottom;
     //
     // AboutPageViewPage
     //
     this.AboutPageViewPage.Controls.Add(this.radScrollablePanel2);
     this.AboutPageViewPage.Location = new System.Drawing.Point(5, 5);
     this.AboutPageViewPage.Name = "AboutPageViewPage";
     this.AboutPageViewPage.Size = new System.Drawing.Size(838, 293);
     this.AboutPageViewPage.Text = "О ЛАУНЧЕРЕ";
     //
     // radScrollablePanel2
     //
     this.radScrollablePanel2.Dock = System.Windows.Forms.DockStyle.Fill;
     this.radScrollablePanel2.Location = new System.Drawing.Point(0, 0);
     this.radScrollablePanel2.Name = "radScrollablePanel2";
     //
     // radScrollablePanel2.PanelContainer
     //
     this.radScrollablePanel2.PanelContainer.Controls.Add(this.AboutVersion);
     this.radScrollablePanel2.PanelContainer.Controls.Add(this.label6);
     this.radScrollablePanel2.PanelContainer.Controls.Add(this.MCofflineDescLabel);
     this.radScrollablePanel2.PanelContainer.Controls.Add(this.radLabel1);
     this.radScrollablePanel2.PanelContainer.Controls.Add(this.PartnersLabel);
     this.radScrollablePanel2.PanelContainer.Controls.Add(this.CopyrightInfoLabel);
     this.radScrollablePanel2.PanelContainer.Controls.Add(this.label3);
     this.radScrollablePanel2.PanelContainer.Controls.Add(this.DevInfoLabel);
     this.radScrollablePanel2.PanelContainer.Controls.Add(this.label5);
     this.radScrollablePanel2.PanelContainer.Controls.Add(this.GratitudesDescLabel);
     this.radScrollablePanel2.PanelContainer.Controls.Add(this.GratitudesLabel);
     this.radScrollablePanel2.PanelContainer.Size = new System.Drawing.Size(836, 291);
     //
     //
     //
     this.radScrollablePanel2.RootElement.Alignment = System.Drawing.ContentAlignment.TopLeft;
     this.radScrollablePanel2.RootElement.AngleTransform = 0F;
     this.radScrollablePanel2.RootElement.FlipText = false;
     this.radScrollablePanel2.RootElement.Margin = new System.Windows.Forms.Padding(0);
     this.radScrollablePanel2.RootElement.TextOrientation = System.Windows.Forms.Orientation.Horizontal;
     this.radScrollablePanel2.Size = new System.Drawing.Size(838, 293);
     this.radScrollablePanel2.TabIndex = 9;
     this.radScrollablePanel2.Text = "radScrollablePanel2";
     this.radScrollablePanel2.ThemeName = "VisualStudio2012Dark";
     //
     // AboutVersion
     //
     this.AboutVersion.BackColor = System.Drawing.Color.Transparent;
     this.AboutVersion.ForeColor = System.Drawing.Color.DimGray;
     this.AboutVersion.Location = new System.Drawing.Point(122, 34);
     this.AboutVersion.MinimumSize = new System.Drawing.Size(58, 18);
     this.AboutVersion.Name = "AboutVersion";
     //
     //
     //
     this.AboutVersion.RootElement.Alignment = System.Drawing.ContentAlignment.TopLeft;
     this.AboutVersion.RootElement.AngleTransform = 0F;
     this.AboutVersion.RootElement.FlipText = false;
     this.AboutVersion.RootElement.Margin = new System.Windows.Forms.Padding(0);
     this.AboutVersion.RootElement.MinSize = new System.Drawing.Size(58, 18);
     this.AboutVersion.RootElement.TextOrientation = System.Windows.Forms.Orientation.Horizontal;
     this.AboutVersion.Size = new System.Drawing.Size(58, 18);
     this.AboutVersion.TabIndex = 1;
     this.AboutVersion.Text = "0.0.0.000";
     this.AboutVersion.TextAlignment = System.Drawing.ContentAlignment.MiddleRight;
     this.AboutVersion.ThemeName = "VisualStudio2012Dark";
     ((Telerik.WinControls.UI.RadLabelElement)(this.AboutVersion.GetChildAt(0))).TextAlignment = System.Drawing.ContentAlignment.MiddleRight;
     ((Telerik.WinControls.UI.RadLabelElement)(this.AboutVersion.GetChildAt(0))).Text = "0.0.0.000";
     ((Telerik.WinControls.Primitives.FillPrimitive)(this.AboutVersion.GetChildAt(0).GetChildAt(0))).BackColor = System.Drawing.Color.Transparent;
     //
     // label6
     //
     this.label6.AutoSize = true;
     this.label6.BackColor = System.Drawing.Color.Transparent;
     this.label6.Cursor = System.Windows.Forms.Cursors.Hand;
     this.label6.ForeColor = System.Drawing.Color.Gray;
     this.label6.ImeMode = System.Windows.Forms.ImeMode.NoControl;
     this.label6.Location = new System.Drawing.Point(14, 201);
     this.label6.Name = "label6";
     this.label6.Size = new System.Drawing.Size(127, 13);
     this.label6.TabIndex = 11;
     this.label6.Text = "http://vk.com/mcoffline";
     this.label6.Click += new System.EventHandler(this.urlLabel_Click);
     //
     // MCofflineDescLabel
     //
     this.MCofflineDescLabel.AutoSize = true;
     this.MCofflineDescLabel.BackColor = System.Drawing.Color.Transparent;
     this.MCofflineDescLabel.Font = new System.Drawing.Font("Segoe UI", 9.75F);
     this.MCofflineDescLabel.ImeMode = System.Windows.Forms.ImeMode.NoControl;
     this.MCofflineDescLabel.Location = new System.Drawing.Point(14, 184);
     this.MCofflineDescLabel.Name = "MCofflineDescLabel";
     this.MCofflineDescLabel.Size = new System.Drawing.Size(402, 17);
     this.MCofflineDescLabel.TabIndex = 9;
     this.MCofflineDescLabel.Text = "MCoffline - лучшая программа для серверных администраторов!";
     //
     // radLabel1
     //
     this.radLabel1.BackColor = System.Drawing.Color.Transparent;
     this.radLabel1.Font = new System.Drawing.Font("Segoe UI", 20.25F);
     this.radLabel1.ForeColor = System.Drawing.Color.Transparent;
     this.radLabel1.Location = new System.Drawing.Point(3, 3);
     this.radLabel1.Name = "radLabel1";
     //
     //
     //
     this.radLabel1.RootElement.Alignment = System.Drawing.ContentAlignment.TopLeft;
     this.radLabel1.RootElement.AngleTransform = 0F;
     this.radLabel1.RootElement.FlipText = false;
     this.radLabel1.RootElement.Margin = new System.Windows.Forms.Padding(0);
     this.radLabel1.RootElement.TextOrientation = System.Windows.Forms.Orientation.Horizontal;
     this.radLabel1.Size = new System.Drawing.Size(175, 41);
     this.radLabel1.TabIndex = 0;
     this.radLabel1.Text = "FreeLauncher";
     this.radLabel1.ThemeName = "VisualStudio2012Dark";
     ((Telerik.WinControls.UI.RadLabelElement)(this.radLabel1.GetChildAt(0))).Text = "FreeLauncher";
     ((Telerik.WinControls.Primitives.FillPrimitive)(this.radLabel1.GetChildAt(0).GetChildAt(0))).BackColor = System.Drawing.Color.Transparent;
     //
     // PartnersLabel
     //
     this.PartnersLabel.BackColor = System.Drawing.Color.Transparent;
     this.PartnersLabel.Font = new System.Drawing.Font("Segoe UI", 20.25F);
     this.PartnersLabel.ForeColor = System.Drawing.Color.Transparent;
     this.PartnersLabel.Location = new System.Drawing.Point(3, 147);
     this.PartnersLabel.Name = "PartnersLabel";
     //
     //
     //
     this.PartnersLabel.RootElement.Alignment = System.Drawing.ContentAlignment.TopLeft;
     this.PartnersLabel.RootElement.AngleTransform = 0F;
     this.PartnersLabel.RootElement.FlipText = false;
     this.PartnersLabel.RootElement.Margin = new System.Windows.Forms.Padding(0);
     this.PartnersLabel.RootElement.TextOrientation = System.Windows.Forms.Orientation.Horizontal;
     this.PartnersLabel.Size = new System.Drawing.Size(140, 41);
     this.PartnersLabel.TabIndex = 10;
     this.PartnersLabel.Text = "Партнёры";
     this.PartnersLabel.ThemeName = "VisualStudio2012Dark";
     ((Telerik.WinControls.UI.RadLabelElement)(this.PartnersLabel.GetChildAt(0))).Text = "Партнёры";
     ((Telerik.WinControls.Primitives.FillPrimitive)(this.PartnersLabel.GetChildAt(0).GetChildAt(0))).BackColor = System.Drawing.Color.Transparent;
     //
     // CopyrightInfoLabel
     //
     this.CopyrightInfoLabel.AutoSize = true;
     this.CopyrightInfoLabel.BackColor = System.Drawing.Color.Transparent;
     this.CopyrightInfoLabel.Font = new System.Drawing.Font("Segoe UI Semibold", 9.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.CopyrightInfoLabel.ImeMode = System.Windows.Forms.ImeMode.NoControl;
     this.CopyrightInfoLabel.Location = new System.Drawing.Point(7, 248);
     this.CopyrightInfoLabel.Name = "CopyrightInfoLabel";
     this.CopyrightInfoLabel.Size = new System.Drawing.Size(464, 34);
     this.CopyrightInfoLabel.TabIndex = 4;
     this.CopyrightInfoLabel.Text = "\"Minecraft\" является торговой маркой Mojang AB. Все права защищены.\r\nMojang AB яв" +
     "ляется дочерней студией Microsoft Studios.";
     this.CopyrightInfoLabel.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
     //
     // label3
     //
     this.label3.AutoSize = true;
     this.label3.BackColor = System.Drawing.Color.Transparent;
     this.label3.Cursor = System.Windows.Forms.Cursors.Hand;
     this.label3.Font = new System.Drawing.Font("Segoe UI", 9F);
     this.label3.ForeColor = System.Drawing.Color.Gray;
     this.label3.ImeMode = System.Windows.Forms.ImeMode.NoControl;
     this.label3.Location = new System.Drawing.Point(14, 72);
     this.label3.Name = "label3";
     this.label3.Size = new System.Drawing.Size(163, 15);
     this.label3.TabIndex = 5;
     this.label3.Text = "https://github.com/dedepete";
     this.label3.Click += new System.EventHandler(this.urlLabel_Click);
     //
     // DevInfoLabel
     //
     this.DevInfoLabel.AutoSize = true;
     this.DevInfoLabel.BackColor = System.Drawing.Color.Transparent;
     this.DevInfoLabel.Font = new System.Drawing.Font("Segoe UI", 9.75F);
     this.DevInfoLabel.ImeMode = System.Windows.Forms.ImeMode.NoControl;
     this.DevInfoLabel.Location = new System.Drawing.Point(14, 55);
     this.DevInfoLabel.Name = "DevInfoLabel";
     this.DevInfoLabel.Size = new System.Drawing.Size(146, 17);
     this.DevInfoLabel.TabIndex = 3;
     this.DevInfoLabel.Text = "Разработано dedepete";
     //
     // label5
     //
     this.label5.AutoSize = true;
     this.label5.BackColor = System.Drawing.Color.Transparent;
     this.label5.Cursor = System.Windows.Forms.Cursors.Hand;
     this.label5.ForeColor = System.Drawing.Color.Gray;
     this.label5.ImeMode = System.Windows.Forms.ImeMode.NoControl;
     this.label5.Location = new System.Drawing.Point(14, 135);
     this.label5.Name = "label5";
     this.label5.Size = new System.Drawing.Size(117, 13);
     this.label5.TabIndex = 8;
     this.label5.Text = "http://ru-minecraft.ru";
     this.label5.Click += new System.EventHandler(this.urlLabel_Click);
     //
     // GratitudesDescLabel
     //
     this.GratitudesDescLabel.AutoSize = true;
     this.GratitudesDescLabel.BackColor = System.Drawing.Color.Transparent;
     this.GratitudesDescLabel.Font = new System.Drawing.Font("Segoe UI", 9.75F);
     this.GratitudesDescLabel.ImeMode = System.Windows.Forms.ImeMode.NoControl;
     this.GratitudesDescLabel.Location = new System.Drawing.Point(14, 118);
     this.GratitudesDescLabel.Name = "GratitudesDescLabel";
     this.GratitudesDescLabel.Size = new System.Drawing.Size(449, 17);
     this.GratitudesDescLabel.TabIndex = 6;
     this.GratitudesDescLabel.Text = "Большое спасибо администрации портала ru-minecraft.ru за хост файлов";
     //
     // GratitudesLabel
     //
     this.GratitudesLabel.BackColor = System.Drawing.Color.Transparent;
     this.GratitudesLabel.Font = new System.Drawing.Font("Segoe UI", 20.25F);
     this.GratitudesLabel.ForeColor = System.Drawing.Color.Transparent;
     this.GratitudesLabel.Location = new System.Drawing.Point(3, 81);
     this.GratitudesLabel.Name = "GratitudesLabel";
     //
     //
     //
     this.GratitudesLabel.RootElement.Alignment = System.Drawing.ContentAlignment.TopLeft;
     this.GratitudesLabel.RootElement.AngleTransform = 0F;
     this.GratitudesLabel.RootElement.FlipText = false;
     this.GratitudesLabel.RootElement.Margin = new System.Windows.Forms.Padding(0);
     this.GratitudesLabel.RootElement.TextOrientation = System.Windows.Forms.Orientation.Horizontal;
     this.GratitudesLabel.Size = new System.Drawing.Size(202, 41);
     this.GratitudesLabel.TabIndex = 7;
     this.GratitudesLabel.Text = "Благодарности";
     this.GratitudesLabel.ThemeName = "VisualStudio2012Dark";
     ((Telerik.WinControls.UI.RadLabelElement)(this.GratitudesLabel.GetChildAt(0))).Text = "Благодарности";
     ((Telerik.WinControls.Primitives.FillPrimitive)(this.GratitudesLabel.GetChildAt(0).GetChildAt(0))).BackColor = System.Drawing.Color.Transparent;
     //
     // LicensesPage
     //
     this.LicensesPage.Controls.Add(this.licensePageView);
     this.LicensesPage.Location = new System.Drawing.Point(5, 5);
     this.LicensesPage.Name = "LicensesPage";
     this.LicensesPage.Size = new System.Drawing.Size(838, 293);
     this.LicensesPage.Text = "ЛИЦЕНЗИИ";
     //
     // licensePageView
     //
     this.licensePageView.Controls.Add(this.FreeLauncherLicense);
     this.licensePageView.Controls.Add(this.dotMCLauncherLicense);
     this.licensePageView.Dock = System.Windows.Forms.DockStyle.Fill;
     this.licensePageView.Location = new System.Drawing.Point(0, 0);
     this.licensePageView.Name = "licensePageView";
     //
     //
     //
     this.licensePageView.RootElement.Alignment = System.Drawing.ContentAlignment.TopLeft;
     this.licensePageView.RootElement.AngleTransform = 0F;
     this.licensePageView.RootElement.FlipText = false;
     this.licensePageView.RootElement.Margin = new System.Windows.Forms.Padding(0);
     this.licensePageView.RootElement.TextOrientation = System.Windows.Forms.Orientation.Horizontal;
     this.licensePageView.SelectedPage = this.FreeLauncherLicense;
     this.licensePageView.Size = new System.Drawing.Size(838, 293);
     this.licensePageView.TabIndex = 0;
     this.licensePageView.Text = "radPageView3";
     this.licensePageView.ThemeName = "VisualStudio2012Dark";
     this.licensePageView.ViewMode = Telerik.WinControls.UI.PageViewMode.Backstage;
     ((Telerik.WinControls.UI.StripViewItemContainer)(this.licensePageView.GetChildAt(0).GetChildAt(0))).MinSize = new System.Drawing.Size(150, 0);
     //
     // FreeLauncherLicense
     //
     this.FreeLauncherLicense.AutoScroll = true;
     this.FreeLauncherLicense.Controls.Add(this.FreeLauncherLicenseText);
     this.FreeLauncherLicense.Location = new System.Drawing.Point(155, 4);
     this.FreeLauncherLicense.Name = "FreeLauncherLicense";
     this.FreeLauncherLicense.Size = new System.Drawing.Size(679, 285);
     this.FreeLauncherLicense.Text = "FreeLauncher";
     //
     // FreeLauncherLicenseText
     //
     this.FreeLauncherLicenseText.Dock = System.Windows.Forms.DockStyle.Fill;
     this.FreeLauncherLicenseText.Location = new System.Drawing.Point(0, 0);
     this.FreeLauncherLicenseText.Name = "FreeLauncherLicenseText";
     this.FreeLauncherLicenseText.Size = new System.Drawing.Size(679, 285);
     this.FreeLauncherLicenseText.TabIndex = 2;
     this.FreeLauncherLicenseText.Text = resources.GetString("FreeLauncherLicenseText.Text");
     this.FreeLauncherLicenseText.ThemeName = "VisualStudio2012Dark";
     ((Telerik.WinControls.UI.RadLabelElement)(this.FreeLauncherLicenseText.GetChildAt(0))).Text = resources.GetString("resource.Text");
     ((Telerik.WinControls.Primitives.FillPrimitive)(this.FreeLauncherLicenseText.GetChildAt(0).GetChildAt(0))).BackColor = System.Drawing.Color.Transparent;
     //
     // dotMCLauncherLicense
     //
     this.dotMCLauncherLicense.AutoScroll = true;
     this.dotMCLauncherLicense.Controls.Add(this.dotMCLauncherLicenseText);
     this.dotMCLauncherLicense.Location = new System.Drawing.Point(155, 4);
     this.dotMCLauncherLicense.Name = "dotMCLauncherLicense";
     this.dotMCLauncherLicense.Size = new System.Drawing.Size(679, 285);
     this.dotMCLauncherLicense.Text = "dotMCLauncher";
     //
     // dotMCLauncherLicenseText
     //
     this.dotMCLauncherLicenseText.Dock = System.Windows.Forms.DockStyle.Fill;
     this.dotMCLauncherLicenseText.Location = new System.Drawing.Point(0, 0);
     this.dotMCLauncherLicenseText.Name = "dotMCLauncherLicenseText";
     this.dotMCLauncherLicenseText.Size = new System.Drawing.Size(679, 285);
     this.dotMCLauncherLicenseText.TabIndex = 1;
     this.dotMCLauncherLicenseText.Text = resources.GetString("dotMCLauncherLicenseText.Text");
     this.dotMCLauncherLicenseText.ThemeName = "VisualStudio2012Dark";
     ((Telerik.WinControls.UI.RadLabelElement)(this.dotMCLauncherLicenseText.GetChildAt(0))).Text = resources.GetString("resource.Text1");
     ((Telerik.WinControls.Primitives.FillPrimitive)(this.dotMCLauncherLicenseText.GetChildAt(0).GetChildAt(0))).BackColor = System.Drawing.Color.Transparent;
     //
     // SettingsPage
     //
     this.SettingsPage.Controls.Add(this.radScrollablePanel1);
     this.SettingsPage.Location = new System.Drawing.Point(5, 5);
     this.SettingsPage.Name = "SettingsPage";
     this.SettingsPage.Size = new System.Drawing.Size(838, 293);
     this.SettingsPage.Text = "НАСТРОЙКИ";
     //
     // radScrollablePanel1
     //
     this.radScrollablePanel1.Dock = System.Windows.Forms.DockStyle.Fill;
     this.radScrollablePanel1.Location = new System.Drawing.Point(0, 0);
     this.radScrollablePanel1.Name = "radScrollablePanel1";
     //
     // radScrollablePanel1.PanelContainer
     //
     this.radScrollablePanel1.PanelContainer.Controls.Add(this.radGroupBox2);
     this.radScrollablePanel1.PanelContainer.Controls.Add(this.radGroupBox1);
     this.radScrollablePanel1.PanelContainer.Size = new System.Drawing.Size(836, 291);
     //
     //
     //
     this.radScrollablePanel1.RootElement.Alignment = System.Drawing.ContentAlignment.TopLeft;
     this.radScrollablePanel1.RootElement.AngleTransform = 0F;
     this.radScrollablePanel1.RootElement.FlipText = false;
     this.radScrollablePanel1.RootElement.Margin = new System.Windows.Forms.Padding(0);
     this.radScrollablePanel1.RootElement.TextOrientation = System.Windows.Forms.Orientation.Horizontal;
     this.radScrollablePanel1.Size = new System.Drawing.Size(838, 293);
     this.radScrollablePanel1.TabIndex = 1;
     this.radScrollablePanel1.Text = "radScrollablePanel1";
     this.radScrollablePanel1.ThemeName = "VisualStudio2012Dark";
     //
     // radGroupBox2
     //
     this.radGroupBox2.AccessibleRole = System.Windows.Forms.AccessibleRole.Grouping;
     this.radGroupBox2.BackColor = System.Drawing.Color.Transparent;
     this.radGroupBox2.Controls.Add(this.CloseGameOutput);
     this.radGroupBox2.Controls.Add(this.UseGamePrefix);
     this.radGroupBox2.Controls.Add(this.EnableMinecraftLogging);
     this.radGroupBox2.HeaderText = "Логирование";
     this.radGroupBox2.Location = new System.Drawing.Point(402, 18);
     this.radGroupBox2.Name = "radGroupBox2";
     //
     //
     //
     this.radGroupBox2.RootElement.Alignment = System.Drawing.ContentAlignment.TopLeft;
     this.radGroupBox2.RootElement.AngleTransform = 0F;
     this.radGroupBox2.RootElement.FlipText = false;
     this.radGroupBox2.RootElement.Margin = new System.Windows.Forms.Padding(0);
     this.radGroupBox2.RootElement.TextOrientation = System.Windows.Forms.Orientation.Horizontal;
     this.radGroupBox2.Size = new System.Drawing.Size(357, 121);
     this.radGroupBox2.TabIndex = 1;
     this.radGroupBox2.Text = "Логирование";
     this.radGroupBox2.ThemeName = "VisualStudio2012Dark";
     //
     // CloseGameOutput
     //
     this.CloseGameOutput.Location = new System.Drawing.Point(5, 69);
     this.CloseGameOutput.Name = "CloseGameOutput";
     //
     //
     //
     this.CloseGameOutput.RootElement.Alignment = System.Drawing.ContentAlignment.TopLeft;
     this.CloseGameOutput.RootElement.AngleTransform = 0F;
     this.CloseGameOutput.RootElement.FlipText = false;
     this.CloseGameOutput.RootElement.Margin = new System.Windows.Forms.Padding(0);
     this.CloseGameOutput.RootElement.TextOrientation = System.Windows.Forms.Orientation.Horizontal;
     this.CloseGameOutput.Size = new System.Drawing.Size(327, 18);
     this.CloseGameOutput.TabIndex = 2;
     this.CloseGameOutput.Text = "Закрывать вкладку, если завершение прошло без ошибок";
     this.CloseGameOutput.ThemeName = "VisualStudio2012Dark";
     //
     // UseGamePrefix
     //
     this.UseGamePrefix.CheckState = System.Windows.Forms.CheckState.Checked;
     this.UseGamePrefix.Location = new System.Drawing.Point(5, 45);
     this.UseGamePrefix.Name = "UseGamePrefix";
     //
     //
     //
     this.UseGamePrefix.RootElement.Alignment = System.Drawing.ContentAlignment.TopLeft;
     this.UseGamePrefix.RootElement.AngleTransform = 0F;
     this.UseGamePrefix.RootElement.FlipText = false;
     this.UseGamePrefix.RootElement.Margin = new System.Windows.Forms.Padding(0);
     this.UseGamePrefix.RootElement.TextOrientation = System.Windows.Forms.Orientation.Horizontal;
     this.UseGamePrefix.Size = new System.Drawing.Size(288, 18);
     this.UseGamePrefix.TabIndex = 1;
     this.UseGamePrefix.Text = "Использовать префикс [GAME] для логов Minecraft";
     this.UseGamePrefix.ThemeName = "VisualStudio2012Dark";
     this.UseGamePrefix.ToggleState = Telerik.WinControls.Enumerations.ToggleState.On;
     //
     // EnableMinecraftLogging
     //
     this.EnableMinecraftLogging.CheckState = System.Windows.Forms.CheckState.Checked;
     this.EnableMinecraftLogging.Location = new System.Drawing.Point(5, 21);
     this.EnableMinecraftLogging.Name = "EnableMinecraftLogging";
     //
     //
     //
     this.EnableMinecraftLogging.RootElement.Alignment = System.Drawing.ContentAlignment.TopLeft;
     this.EnableMinecraftLogging.RootElement.AngleTransform = 0F;
     this.EnableMinecraftLogging.RootElement.FlipText = false;
     this.EnableMinecraftLogging.RootElement.Margin = new System.Windows.Forms.Padding(0);
     this.EnableMinecraftLogging.RootElement.TextOrientation = System.Windows.Forms.Orientation.Horizontal;
     this.EnableMinecraftLogging.Size = new System.Drawing.Size(177, 18);
     this.EnableMinecraftLogging.TabIndex = 0;
     this.EnableMinecraftLogging.Text = "Выводить лог игры в консоль";
     this.EnableMinecraftLogging.ThemeName = "VisualStudio2012Dark";
     this.EnableMinecraftLogging.ToggleState = Telerik.WinControls.Enumerations.ToggleState.On;
     //
     // radGroupBox1
     //
     this.radGroupBox1.AccessibleRole = System.Windows.Forms.AccessibleRole.Grouping;
     this.radGroupBox1.BackColor = System.Drawing.Color.Transparent;
     this.radGroupBox1.Controls.Add(this.radLabel4);
     this.radGroupBox1.Controls.Add(this.LangDropDownList);
     this.radGroupBox1.Controls.Add(this.EnableMinecraftUpdateAlerts);
     this.radGroupBox1.Controls.Add(this.radCheckBox1);
     this.radGroupBox1.HeaderText = "Основные";
     this.radGroupBox1.Location = new System.Drawing.Point(17, 18);
     this.radGroupBox1.Name = "radGroupBox1";
     //
     //
     //
     this.radGroupBox1.RootElement.Alignment = System.Drawing.ContentAlignment.TopLeft;
     this.radGroupBox1.RootElement.AngleTransform = 0F;
     this.radGroupBox1.RootElement.FlipText = false;
     this.radGroupBox1.RootElement.Margin = new System.Windows.Forms.Padding(0);
     this.radGroupBox1.RootElement.TextOrientation = System.Windows.Forms.Orientation.Horizontal;
     this.radGroupBox1.Size = new System.Drawing.Size(357, 121);
     this.radGroupBox1.TabIndex = 0;
     this.radGroupBox1.Text = "Основные";
     this.radGroupBox1.ThemeName = "VisualStudio2012Dark";
     //
     // radLabel4
     //
     this.radLabel4.Location = new System.Drawing.Point(5, 69);
     this.radLabel4.Name = "radLabel4";
     //
     //
     //
     this.radLabel4.RootElement.Alignment = System.Drawing.ContentAlignment.TopLeft;
     this.radLabel4.RootElement.AngleTransform = 0F;
     this.radLabel4.RootElement.FlipText = false;
     this.radLabel4.RootElement.Margin = new System.Windows.Forms.Padding(0);
     this.radLabel4.RootElement.TextOrientation = System.Windows.Forms.Orientation.Horizontal;
     this.radLabel4.Size = new System.Drawing.Size(87, 18);
     this.radLabel4.TabIndex = 5;
     this.radLabel4.Text = "Язык/Language:";
     this.radLabel4.ThemeName = "VisualStudio2012Dark";
     ((Telerik.WinControls.UI.RadLabelElement)(this.radLabel4.GetChildAt(0))).Text = "Язык/Language:";
     ((Telerik.WinControls.Primitives.FillPrimitive)(this.radLabel4.GetChildAt(0).GetChildAt(0))).Visibility = Telerik.WinControls.ElementVisibility.Collapsed;
     //
     // LangDropDownList
     //
     this.LangDropDownList.AutoCompleteDisplayMember = null;
     this.LangDropDownList.AutoCompleteValueMember = null;
     this.LangDropDownList.DropDownStyle = Telerik.WinControls.RadDropDownStyle.DropDownList;
     radListDataItem1.Tag = "ru-RU";
     radListDataItem1.Text = "Русский (ru-default)";
     this.LangDropDownList.Items.Add(radListDataItem1);
     this.LangDropDownList.Location = new System.Drawing.Point(150, 69);
     this.LangDropDownList.Name = "LangDropDownList";
     //
     //
     //
     this.LangDropDownList.RootElement.Alignment = System.Drawing.ContentAlignment.TopLeft;
     this.LangDropDownList.RootElement.AngleTransform = 0F;
     this.LangDropDownList.RootElement.FlipText = false;
     this.LangDropDownList.RootElement.Margin = new System.Windows.Forms.Padding(0);
     this.LangDropDownList.RootElement.TextOrientation = System.Windows.Forms.Orientation.Horizontal;
     this.LangDropDownList.Size = new System.Drawing.Size(202, 24);
     this.LangDropDownList.TabIndex = 3;
     this.LangDropDownList.Text = "Русский (ru-RU)";
     this.LangDropDownList.ThemeName = "VisualStudio2012Dark";
     this.LangDropDownList.SelectedIndexChanged += new Telerik.WinControls.UI.Data.PositionChangedEventHandler(this.LangDropDownList_SelectedIndexChanged);
     //
     // EnableMinecraftUpdateAlerts
     //
     this.EnableMinecraftUpdateAlerts.CheckState = System.Windows.Forms.CheckState.Checked;
     this.EnableMinecraftUpdateAlerts.Enabled = false;
     this.EnableMinecraftUpdateAlerts.Location = new System.Drawing.Point(5, 45);
     this.EnableMinecraftUpdateAlerts.Name = "EnableMinecraftUpdateAlerts";
     //
     //
     //
     this.EnableMinecraftUpdateAlerts.RootElement.Alignment = System.Drawing.ContentAlignment.TopLeft;
     this.EnableMinecraftUpdateAlerts.RootElement.AngleTransform = 0F;
     this.EnableMinecraftUpdateAlerts.RootElement.FlipText = false;
     this.EnableMinecraftUpdateAlerts.RootElement.Margin = new System.Windows.Forms.Padding(0);
     this.EnableMinecraftUpdateAlerts.RootElement.TextOrientation = System.Windows.Forms.Orientation.Horizontal;
     this.EnableMinecraftUpdateAlerts.Size = new System.Drawing.Size(340, 18);
     this.EnableMinecraftUpdateAlerts.TabIndex = 2;
     this.EnableMinecraftUpdateAlerts.Text = "Показывать уведомления о наличии новых версий Minecraft";
     this.EnableMinecraftUpdateAlerts.ThemeName = "VisualStudio2012Dark";
     this.EnableMinecraftUpdateAlerts.ToggleState = Telerik.WinControls.Enumerations.ToggleState.On;
     //
     // radCheckBox1
     //
     this.radCheckBox1.Enabled = false;
     this.radCheckBox1.Location = new System.Drawing.Point(5, 21);
     this.radCheckBox1.Name = "radCheckBox1";
     //
     //
     //
     this.radCheckBox1.RootElement.Alignment = System.Drawing.ContentAlignment.TopLeft;
     this.radCheckBox1.RootElement.AngleTransform = 0F;
     this.radCheckBox1.RootElement.FlipText = false;
     this.radCheckBox1.RootElement.Margin = new System.Windows.Forms.Padding(0);
     this.radCheckBox1.RootElement.TextOrientation = System.Windows.Forms.Orientation.Horizontal;
     this.radCheckBox1.Size = new System.Drawing.Size(257, 18);
     this.radCheckBox1.TabIndex = 0;
     this.radCheckBox1.Text = "Проверять наличие обновлений программы";
     this.radCheckBox1.ThemeName = "VisualStudio2012Dark";
     //
     // StatusBar
     //
     this.StatusBar.Dock = System.Windows.Forms.DockStyle.Bottom;
     this.StatusBar.Location = new System.Drawing.Point(0, 363);
     this.StatusBar.Name = "StatusBar";
     this.StatusBar.Size = new System.Drawing.Size(858, 24);
     this.StatusBar.TabIndex = 4;
     this.StatusBar.Text = "StatusBar";
     this.StatusBar.ThemeName = "VisualStudio2012Dark";
     this.StatusBar.Visible = false;
     //
     // radPanel1
     //
     this.radPanel1.BackgroundImage = ((System.Drawing.Image)(resources.GetObject("radPanel1.BackgroundImage")));
     this.radPanel1.Controls.Add(this.DeleteProfileButton);
     this.radPanel1.Controls.Add(this.ManageUsersButton);
     this.radPanel1.Controls.Add(this.NicknameDropDownList);
     this.radPanel1.Controls.Add(this.SelectedVersion);
     this.radPanel1.Controls.Add(this.LogoBox);
     this.radPanel1.Controls.Add(this.LaunchButton);
     this.radPanel1.Controls.Add(this.profilesDropDownBox);
     this.radPanel1.Controls.Add(this.EditProfile);
     this.radPanel1.Controls.Add(this.AddProfile);
     this.radPanel1.Dock = System.Windows.Forms.DockStyle.Bottom;
     this.radPanel1.Location = new System.Drawing.Point(0, 387);
     this.radPanel1.Name = "radPanel1";
     //
     //
     //
     this.radPanel1.RootElement.Alignment = System.Drawing.ContentAlignment.TopLeft;
     this.radPanel1.RootElement.AngleTransform = 0F;
     this.radPanel1.RootElement.FlipText = false;
     this.radPanel1.RootElement.Margin = new System.Windows.Forms.Padding(0);
     this.radPanel1.RootElement.TextOrientation = System.Windows.Forms.Orientation.Horizontal;
     this.radPanel1.Size = new System.Drawing.Size(858, 59);
     this.radPanel1.TabIndex = 3;
     this.radPanel1.ThemeName = "VisualStudio2012Dark";
     //
     // DeleteProfileButton
     //
     this.DeleteProfileButton.Image = ((System.Drawing.Image)(resources.GetObject("DeleteProfileButton.Image")));
     this.DeleteProfileButton.ImageAlignment = System.Drawing.ContentAlignment.MiddleCenter;
     this.DeleteProfileButton.Location = new System.Drawing.Point(6, 6);
     this.DeleteProfileButton.Name = "DeleteProfileButton";
     this.DeleteProfileButton.Size = new System.Drawing.Size(32, 24);
     this.DeleteProfileButton.TabIndex = 8;
     this.DeleteProfileButton.TextImageRelation = System.Windows.Forms.TextImageRelation.ImageBeforeText;
     this.DeleteProfileButton.ThemeName = "VisualStudio2012Dark";
     this.DeleteProfileButton.Click += new System.EventHandler(this.DeleteProfileButton_Click);
     //
     // ManageUsersButton
     //
     this.ManageUsersButton.Anchor = System.Windows.Forms.AnchorStyles.Top;
     this.ManageUsersButton.Image = global::FreeLauncher.Properties.Resources.edit;
     this.ManageUsersButton.ImageAlignment = System.Drawing.ContentAlignment.MiddleCenter;
     this.ManageUsersButton.Location = new System.Drawing.Point(513, 6);
     this.ManageUsersButton.Name = "ManageUsersButton";
     //
     //
     //
     this.ManageUsersButton.RootElement.Alignment = System.Drawing.ContentAlignment.TopLeft;
     this.ManageUsersButton.RootElement.AngleTransform = 0F;
     this.ManageUsersButton.RootElement.FlipText = false;
     this.ManageUsersButton.RootElement.Margin = new System.Windows.Forms.Padding(0);
     this.ManageUsersButton.RootElement.TextOrientation = System.Windows.Forms.Orientation.Horizontal;
     this.ManageUsersButton.Size = new System.Drawing.Size(32, 24);
     this.ManageUsersButton.TabIndex = 7;
     this.ManageUsersButton.ThemeName = "VisualStudio2012Dark";
     this.ManageUsersButton.Click += new System.EventHandler(this.ManageUsersButton_Click);
     //
     // NicknameDropDownList
     //
     this.NicknameDropDownList.Anchor = System.Windows.Forms.AnchorStyles.Top;
     this.NicknameDropDownList.AutoCompleteDisplayMember = null;
     this.NicknameDropDownList.AutoCompleteValueMember = null;
     this.NicknameDropDownList.Location = new System.Drawing.Point(314, 6);
     this.NicknameDropDownList.Name = "NicknameDropDownList";
     this.NicknameDropDownList.NullText = "Ник";
     //
     //
     //
     this.NicknameDropDownList.RootElement.Alignment = System.Drawing.ContentAlignment.TopLeft;
     this.NicknameDropDownList.RootElement.AngleTransform = 0F;
     this.NicknameDropDownList.RootElement.FlipText = false;
     this.NicknameDropDownList.RootElement.Margin = new System.Windows.Forms.Padding(0);
     this.NicknameDropDownList.RootElement.TextOrientation = System.Windows.Forms.Orientation.Horizontal;
     this.NicknameDropDownList.Size = new System.Drawing.Size(196, 24);
     this.NicknameDropDownList.TabIndex = 3;
     this.NicknameDropDownList.ThemeName = "VisualStudio2012Dark";
     this.NicknameDropDownList.SelectedIndexChanged += new Telerik.WinControls.UI.Data.PositionChangedEventHandler(this.NicknameDropDownList_SelectedIndexChanged);
     //
     // SelectedVersion
     //
     this.SelectedVersion.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
     this.SelectedVersion.AutoSize = true;
     this.SelectedVersion.BackColor = System.Drawing.Color.Transparent;
     this.SelectedVersion.ForeColor = System.Drawing.Color.White;
     this.SelectedVersion.ImeMode = System.Windows.Forms.ImeMode.NoControl;
     this.SelectedVersion.Location = new System.Drawing.Point(631, 42);
     this.SelectedVersion.MinimumSize = new System.Drawing.Size(220, 13);
     this.SelectedVersion.Name = "SelectedVersion";
     this.SelectedVersion.Size = new System.Drawing.Size(220, 13);
     this.SelectedVersion.TabIndex = 6;
     this.SelectedVersion.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
     //
     // LogoBox
     //
     this.LogoBox.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
     this.LogoBox.BackColor = System.Drawing.Color.Transparent;
     this.LogoBox.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Zoom;
     this.LogoBox.Image = ((System.Drawing.Image)(resources.GetObject("LogoBox.Image")));
     this.LogoBox.ImeMode = System.Windows.Forms.ImeMode.NoControl;
     this.LogoBox.Location = new System.Drawing.Point(651, -11);
     this.LogoBox.Name = "LogoBox";
     this.LogoBox.Size = new System.Drawing.Size(181, 84);
     this.LogoBox.SizeMode = System.Windows.Forms.PictureBoxSizeMode.Zoom;
     this.LogoBox.TabIndex = 5;
     this.LogoBox.TabStop = false;
     //
     // LaunchButton
     //
     this.LaunchButton.Anchor = System.Windows.Forms.AnchorStyles.Top;
     this.LaunchButton.Location = new System.Drawing.Point(314, 33);
     this.LaunchButton.Name = "LaunchButton";
     //
     //
     //
     this.LaunchButton.RootElement.Alignment = System.Drawing.ContentAlignment.TopLeft;
     this.LaunchButton.RootElement.AngleTransform = 0F;
     this.LaunchButton.RootElement.FlipText = false;
     this.LaunchButton.RootElement.Margin = new System.Windows.Forms.Padding(0);
     this.LaunchButton.RootElement.TextOrientation = System.Windows.Forms.Orientation.Horizontal;
     this.LaunchButton.Size = new System.Drawing.Size(231, 22);
     this.LaunchButton.TabIndex = 4;
     this.LaunchButton.Text = "Запуск игры";
     this.LaunchButton.ThemeName = "VisualStudio2012Dark";
     this.LaunchButton.Click += new System.EventHandler(this.LaunchButton_Click);
     //
     // profilesDropDownBox
     //
     this.profilesDropDownBox.AutoCompleteDisplayMember = null;
     this.profilesDropDownBox.AutoCompleteValueMember = null;
     this.profilesDropDownBox.DropDownStyle = Telerik.WinControls.RadDropDownStyle.DropDownList;
     this.profilesDropDownBox.Location = new System.Drawing.Point(41, 6);
     this.profilesDropDownBox.Name = "profilesDropDownBox";
     //
     //
     //
     this.profilesDropDownBox.RootElement.Alignment = System.Drawing.ContentAlignment.TopLeft;
     this.profilesDropDownBox.RootElement.AngleTransform = 0F;
     this.profilesDropDownBox.RootElement.FlipText = false;
     this.profilesDropDownBox.RootElement.Margin = new System.Windows.Forms.Padding(0);
     this.profilesDropDownBox.RootElement.TextOrientation = System.Windows.Forms.Orientation.Horizontal;
     this.profilesDropDownBox.Size = new System.Drawing.Size(191, 24);
     this.profilesDropDownBox.TabIndex = 2;
     this.profilesDropDownBox.ThemeName = "VisualStudio2012Dark";
     this.profilesDropDownBox.SelectedIndexChanged += new Telerik.WinControls.UI.Data.PositionChangedEventHandler(this.profilesDropDownBox_SelectedIndexChanged);
     //
     // EditProfile
     //
     this.EditProfile.Location = new System.Drawing.Point(122, 33);
     this.EditProfile.Name = "EditProfile";
     //
     //
     //
     this.EditProfile.RootElement.Alignment = System.Drawing.ContentAlignment.TopLeft;
     this.EditProfile.RootElement.AngleTransform = 0F;
     this.EditProfile.RootElement.FlipText = false;
     this.EditProfile.RootElement.Margin = new System.Windows.Forms.Padding(0);
     this.EditProfile.RootElement.TextOrientation = System.Windows.Forms.Orientation.Horizontal;
     this.EditProfile.Size = new System.Drawing.Size(110, 22);
     this.EditProfile.TabIndex = 1;
     this.EditProfile.Text = "Изменить профиль";
     this.EditProfile.TextWrap = true;
     this.EditProfile.ThemeName = "VisualStudio2012Dark";
     this.EditProfile.Click += new System.EventHandler(this.EditProfile_Click);
     //
     // AddProfile
     //
     this.AddProfile.Location = new System.Drawing.Point(6, 33);
     this.AddProfile.Name = "AddProfile";
     //
     //
     //
     this.AddProfile.RootElement.Alignment = System.Drawing.ContentAlignment.TopLeft;
     this.AddProfile.RootElement.AngleTransform = 0F;
     this.AddProfile.RootElement.FlipText = false;
     this.AddProfile.RootElement.Margin = new System.Windows.Forms.Padding(0);
     this.AddProfile.RootElement.TextOrientation = System.Windows.Forms.Orientation.Horizontal;
     this.AddProfile.Size = new System.Drawing.Size(110, 22);
     this.AddProfile.TabIndex = 0;
     this.AddProfile.Text = "Добавить профиль";
     this.AddProfile.TextWrap = true;
     this.AddProfile.ThemeName = "VisualStudio2012Dark";
     this.AddProfile.Click += new System.EventHandler(this.AddProfile_Click);
     //
     // LauncherForm
     //
     this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
     this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
     this.ClientSize = new System.Drawing.Size(858, 446);
     this.Controls.Add(this.mainPageView);
     this.Controls.Add(this.StatusBar);
     this.Controls.Add(this.radPanel1);
     this.MinimumSize = new System.Drawing.Size(712, 446);
     this.Name = "LauncherForm";
     //
     //
     //
     this.RootElement.ApplyShapeToControl = true;
     this.Text = "FreeLauncher";
     this.ThemeName = "VisualStudio2012Dark";
     this.FormClosing += new System.Windows.Forms.FormClosingEventHandler(this.LauncherForm_FormClosing);
     ((System.ComponentModel.ISupportInitialize)(this.mainPageView)).EndInit();
     this.mainPageView.ResumeLayout(false);
     this.News.ResumeLayout(false);
     ((System.ComponentModel.ISupportInitialize)(this.webPanel)).EndInit();
     this.webPanel.ResumeLayout(false);
     ((System.ComponentModel.ISupportInitialize)(this.BackWebButton)).EndInit();
     ((System.ComponentModel.ISupportInitialize)(this.ForwardWebButton)).EndInit();
     this.ConsolePage.ResumeLayout(false);
     ((System.ComponentModel.ISupportInitialize)(this.ConsoleOptionsPanel)).EndInit();
     this.ConsoleOptionsPanel.ResumeLayout(false);
     ((System.ComponentModel.ISupportInitialize)(this.SetToClipboardButton)).EndInit();
     ((System.ComponentModel.ISupportInitialize)(this.DebugModeButton)).EndInit();
     this.EditVersions.ResumeLayout(false);
     ((System.ComponentModel.ISupportInitialize)(this.versionsListView)).EndInit();
     this.AboutPage.ResumeLayout(false);
     ((System.ComponentModel.ISupportInitialize)(this.AboutPageView)).EndInit();
     this.AboutPageView.ResumeLayout(false);
     this.AboutPageViewPage.ResumeLayout(false);
     this.radScrollablePanel2.PanelContainer.ResumeLayout(false);
     this.radScrollablePanel2.PanelContainer.PerformLayout();
     ((System.ComponentModel.ISupportInitialize)(this.radScrollablePanel2)).EndInit();
     this.radScrollablePanel2.ResumeLayout(false);
     ((System.ComponentModel.ISupportInitialize)(this.AboutVersion)).EndInit();
     ((System.ComponentModel.ISupportInitialize)(this.radLabel1)).EndInit();
     ((System.ComponentModel.ISupportInitialize)(this.PartnersLabel)).EndInit();
     ((System.ComponentModel.ISupportInitialize)(this.GratitudesLabel)).EndInit();
     this.LicensesPage.ResumeLayout(false);
     ((System.ComponentModel.ISupportInitialize)(this.licensePageView)).EndInit();
     this.licensePageView.ResumeLayout(false);
     this.FreeLauncherLicense.ResumeLayout(false);
     this.FreeLauncherLicense.PerformLayout();
     ((System.ComponentModel.ISupportInitialize)(this.FreeLauncherLicenseText)).EndInit();
     this.dotMCLauncherLicense.ResumeLayout(false);
     this.dotMCLauncherLicense.PerformLayout();
     ((System.ComponentModel.ISupportInitialize)(this.dotMCLauncherLicenseText)).EndInit();
     this.SettingsPage.ResumeLayout(false);
     this.radScrollablePanel1.PanelContainer.ResumeLayout(false);
     ((System.ComponentModel.ISupportInitialize)(this.radScrollablePanel1)).EndInit();
     this.radScrollablePanel1.ResumeLayout(false);
     ((System.ComponentModel.ISupportInitialize)(this.radGroupBox2)).EndInit();
     this.radGroupBox2.ResumeLayout(false);
     this.radGroupBox2.PerformLayout();
     ((System.ComponentModel.ISupportInitialize)(this.CloseGameOutput)).EndInit();
     ((System.ComponentModel.ISupportInitialize)(this.UseGamePrefix)).EndInit();
     ((System.ComponentModel.ISupportInitialize)(this.EnableMinecraftLogging)).EndInit();
     ((System.ComponentModel.ISupportInitialize)(this.radGroupBox1)).EndInit();
     this.radGroupBox1.ResumeLayout(false);
     this.radGroupBox1.PerformLayout();
     ((System.ComponentModel.ISupportInitialize)(this.radLabel4)).EndInit();
     ((System.ComponentModel.ISupportInitialize)(this.LangDropDownList)).EndInit();
     ((System.ComponentModel.ISupportInitialize)(this.EnableMinecraftUpdateAlerts)).EndInit();
     ((System.ComponentModel.ISupportInitialize)(this.radCheckBox1)).EndInit();
     ((System.ComponentModel.ISupportInitialize)(this.StatusBar)).EndInit();
     ((System.ComponentModel.ISupportInitialize)(this.radPanel1)).EndInit();
     this.radPanel1.ResumeLayout(false);
     this.radPanel1.PerformLayout();
     ((System.ComponentModel.ISupportInitialize)(this.DeleteProfileButton)).EndInit();
     ((System.ComponentModel.ISupportInitialize)(this.ManageUsersButton)).EndInit();
     ((System.ComponentModel.ISupportInitialize)(this.NicknameDropDownList)).EndInit();
     ((System.ComponentModel.ISupportInitialize)(this.LogoBox)).EndInit();
     ((System.ComponentModel.ISupportInitialize)(this.LaunchButton)).EndInit();
     ((System.ComponentModel.ISupportInitialize)(this.profilesDropDownBox)).EndInit();
     ((System.ComponentModel.ISupportInitialize)(this.EditProfile)).EndInit();
     ((System.ComponentModel.ISupportInitialize)(this.AddProfile)).EndInit();
     ((System.ComponentModel.ISupportInitialize)(this)).EndInit();
     this.ResumeLayout(false);
 }
Ejemplo n.º 43
0
        public static void PopulateComplaintTemplate(RadDropDownList ddl)
        {
            try
            {
                List<ComplaintTemplate> complaints = new TemplateData().GetComplaintTemplate();
                complaints.Insert(0, new ComplaintTemplate() { ComplaintTemplateId = 0, ComplaintTemplateName = "Select to add template" });

                ddl.DataSource = complaints;
                ddl.ValueMember = "ComplaintTemplateId";
                ddl.DisplayMember = "ComplaintTemplateName";
            }
            catch (Exception x)
            {
                FileLogger.LogError(x);
            }
        }
        public override void InitializeCell(System.Web.UI.WebControls.TableCell cell, int columnIndex, GridItem inItem)
        {
            if (Initializable(inItem.ItemType))
            {
                base.InitializeCell(cell, columnIndex, inItem);
                return;
            }
            object dataItem = inItem.DataItem;
            string value = null;
            if (null != dataItem)
            {
                DataRowView rowView = dataItem as DataRowView;
                if (null != rowView)
                {
                    value = rowView[base.DataField].ToString();
                }
                else
                {
                    PropertyInfo pi = dataItem.GetType().GetProperty(base.DataField);
                    if (null != pi)
                    {
                        object selectedValue = pi.GetValue(dataItem);
                        if (null != selectedValue)
                        {
                            value = selectedValue.ToString();
                        }
                    }
                }
            }


            Control ctrl;
            if (inItem.IsInEditMode)
            {
                RadDropDownList cbx = new RadDropDownList();
                cbx.ID = "cbx" + base.UniqueName;
                foreach(var item in this.ItemSource.ToRadDropDownList())
                {
                    cbx.Items.Add(item);
                }

                if (null != value)
                    cbx.SelectedValue = value;

                if (this.ControlWidth != Unit.Empty)
                    cbx.Width = this.ControlWidth;

                ctrl = cbx;
            }
            else
            {
                Label label = new Label();
                label.ID = "lbl" + base.UniqueName;
                if (null != value)
                {
                    ComboItem item = this.ItemSource.Find(value);
                    label.Text = (null != item) ? item.Text : value;
                }

                ctrl = label;
            }

            cell.Controls.Add(ctrl);
            //base.InitializeCell(cell, columnIndex, inItem);
        }
Ejemplo n.º 45
0
        /// <summary>
        /// Permite cargar un DropDownList con los meses de un año desde enero hasta el mes actual
        /// </summary>
        /// <param name="myDropDownList">El objecto DropDownList a llenar</param>
        /// <param name="abreviado">Indica si el nombre del mes se va a abreviar o no, si se omite el valor por defecto es False, es decir que no se omite</param>
        /// <remarks>
        /// <list>Creado: Noviembre 28 de 2013 - Ing. David Pineda</list>
        /// </remarks>
        public static void cargarMesesToDropDownList(ref RadDropDownList myDropDownList, bool abreviado = false)
        {
            try
            {
                myDropDownList.Items.Clear();
                for (int i = 1; i <= DateTime.Now.Month; i++)
                {
                    AddItemToDropDownList(ref myDropDownList, Microsoft.VisualBasic.DateAndTime.MonthName(i, abreviado), Convert.ToString(i), false);
                }

            }
            catch (ArgumentException ex)
            {
                throw ex;
            }
            catch (Exception ex)
            {
                throw ex;
            }
        }
Ejemplo n.º 46
0
        /// <summary>
        /// Permite cargar años en un DropDownList desde el año inicial hasta el final
        /// </summary>
        /// <param name="myDropDownList">DropDownList en donde se cargan los años</param>
        /// <param name="anoInicial">Año desde el cual se inicia el cargue del DropDownList</param>
        /// <param name="anoFinal">Año en el cual termina el cargue del DropDownList</param>
        /// <remarks>
        /// <list>Creado Enero 08 de 2013 - Ing. David Pineda</list>
        /// </remarks>
        public static void cargarAnosToDropDownList(ref RadDropDownList myDropDownList, System.DateTime anoInicial, System.DateTime anoFinal)
        {
            if (myDropDownList == null)
            {
                throw new ArgumentNullException("El argumento myDropDownList no puede ser nulo");
            }
            else if (anoInicial == null)
            {
                throw new ArgumentNullException("El argumento anoInicial no puede ser nulo");
            }
            else if (anoFinal == null)
            {
                throw new ArgumentNullException("El argumento anoFinal no puede ser nulo");
            }

            int difAnos = (int)Microsoft.VisualBasic.DateAndTime.DateDiff(Microsoft.VisualBasic.DateInterval.Year, anoInicial, anoFinal);

            myDropDownList.Items.Clear();
            for (int i = 0; i <= difAnos; i++)
            {
                AddItemToDropDownList(ref myDropDownList, Convert.ToString(anoInicial.Date.AddYears(i).Year), Convert.ToString(anoInicial.Date.AddYears(i).Year), false);
            }
        }
Ejemplo n.º 47
0
        /// <summary>
        /// Permite pararse en un item del DropDownList deacuerdo a su valor
        /// </summary>
        /// <param name="myDropDownList">Objeto DropDownList el cual actualizar</param>
        /// <param name="item_value">Valor a buscar en el DropDownLis</param>
        /// <remarks>
        /// <list> Creado: Enero 17 de 2013 - Ing. David Pineda </list>
        /// </remarks>
        public static void selectIndexByValue(ref RadDropDownList myDropDownList, string item_value)
        {
            if (myDropDownList == null)
            {
                throw new ArgumentNullException("El argumento myDropDownList es nulo");
            }

            if (item_value == string.Empty)
            {
                throw new ArgumentException("El argumento item_value esta vacio");
            }

            if (myDropDownList.Items.Count > 0)
            {
                try
                {
                    myDropDownList.SelectedIndex = myDropDownList.FindItemByValue(item_value).Index;
                }
                catch (Exception ex)
                {
                    throw ex;
                }
            }
        }
Ejemplo n.º 48
0
        /// <summary>
        /// Permite llenar un DropDownList a partir de una Datatable con los datos
        /// </summary>
        /// <param name="dtDatos">Objecto DataTable con los datos a cargar en el DropDownList</param>
        /// <param name="myDropDownList">Objeto DropDownList que se llena</param>
        /// <remarks>
        /// <list>Creado: 25 de Noviembre de 2013 - Ing. David Pineda</list>
        /// </remarks>
        public static void llenarDropDownList(DataTable dtDatos, ref RadDropDownList myDropDownList)
        {
            if (dtDatos == null)
            {
                throw new ArgumentNullException("El argumento dtDatos es nulo");
            }

            if (myDropDownList == null)
            {
                throw new ArgumentNullException("El argumento myDropDownList es nulo");
            }

            try
            {
                myDropDownList.Items.Clear();
                myDropDownList.DataValueField = myDropDownList.DataValueField;
                myDropDownList.DataTextField = myDropDownList.DataTextField;
                myDropDownList.DataSource = dtDatos;
                myDropDownList.DataBind();
            }
            catch (Exception ex)
            {
                throw ex;
            }
        }
Ejemplo n.º 49
0
        public static void PopulateLabInvestigation(RadDropDownList ddl)
        {
            try
            {
                List<LabInvestigation> lab = new MasterData().GetLabInvestigations();
                lab.Insert(0, new LabInvestigation() { LabInvestigationId = 0, LabInvestigationName = "Select" });

                ddl.DataSource = lab;
                ddl.ValueMember = "LabInvestigationId";
                ddl.DisplayMember = "LabInvestigationName";
            }
            catch (Exception x)
            {
                FileLogger.LogError(x);
            }
        }