public ListViewGettingStartedCSharp() { // >> listview-gettingstarted-listview-csharp var listView = new RadListView { ItemsSource = new ViewModel().Source, ItemTemplate = new DataTemplate(() => { var label = new Label { Margin = new Thickness(10) }; var content = new Grid(); content.Children.Add(label); label.SetBinding(Label.TextProperty, new Binding(nameof(SourceItem.Name))); return(new ListViewTemplateCell { View = content }); }) }; // << listview-gettingstarted-listview-csharp Content = listView; }
public void Populate(RadListView list2D, RadListView list3D) { list2D.Items.Clear(); list3D.Items.Clear(); foreach (Mapping map in TagClassMappingConfig.Values) { string prefix = string.Empty; string clsName = string.Empty; TagMapType tm = GetPrefix(map.Source, out prefix, out clsName); if (tm == TagMapType.Unknown) { continue; } ListViewDataItem lv = new ListViewDataItem(clsName); lv.Tag = map; switch (tm) { case TagMapType.Map2D: list2D.Items.Add(lv); break; case TagMapType.Map3D: list3D.Items.Add(lv); break; case TagMapType.MapBase: break; } } }
protected void btnOtherClasess_Click(object sender, EventArgs e) { lblstcode.Text = Session[sessionNames.userID_StudentOstad].ToString(); LinkButton lnk = sender as LinkButton; String ClassCode = lnk.Attributes["CustomParameter"].ToString(); if ((clsB.Show_similarClass_List(ClassCode, lblstcode.Text)).Count != 0) { string scrp = "function f(){$find(\"" + RadWindow1.ClientID + "\").show(); Sys.Application.remove_load(f);}Sys.Application.add_load(f);"; ScriptManager.RegisterStartupScript(this.Page, GetType(), ClientID, scrp, true); RadListView1.DataSource = clsB.Show_similarClass_List(ClassCode, lblstcode.Text); RadListView1.DataBind(); foreach (RadListViewItem lvi in RadListView1.Items) { RadListView lstAsset = (RadListView)lvi.FindControl("radListView4"); Label ClassCode1 = (Label)lvi.FindControl("ClassCode1"); var classCode = (ClassCode1.Text); var term = ConfigurationManager.AppSettings["Term"].ToString(); lstAsset.DataSource = assetB.Show_Asset_List_ByClassCode(classCode, term); lstAsset.DataBind(); if (RadListView1.Items.Count > 0) { btn_Select.Visible = true; } } } else { rwm_Validations.RadAlert("کلاس مشابه در این ترم وجود ندارد", null, 100, "پیام", ""); } Session[sessionNames.userID_StudentOstad] = lblstcode.Text; }
public override View OnCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) { View rootView = inflater.Inflate(Resource.Layout.fragment_list_view_example, container, false); this.listView = (RadListView) rootView.FindViewById(Resource.Id.listView).JavaCast<RadListView>(); ArrayList dataSource = new ArrayList(); EmailMessage message = new EmailMessage(); message.title = "Tech news"; message.content = "Here is your daily LinkedIn feed with news about .NET, Java, iOS and more..."; dataSource.Add(message); message = new EmailMessage(); message.title = "Awaiting Payment"; message.content = "Monthly bills summary: water supply, electricity, earth gas..."; dataSource.Add(message); message = new EmailMessage(); message.title = "Greetings from Hawai"; message.content = "Hey Betty, we've just arrived! What a flight!..."; dataSource.Add(message); this.listView.SetAdapter(new SwipeToExecuteListViewAdapter(dataSource)); seb = new SwipeExecuteBehavior(); seb.AddListener(this); this.listView.AddBehavior(seb); return rootView; }
public RootPageMaster() { this.InitializeComponent(); this.BindingContext = new RootMasterViewModel(); this.ListView = this.MenuItemsListView; }
private void ItemsListControl_ItemDataBound(object sender, RadListViewItemEventArgs e) { if (e.Item.ItemType != RadListViewItemType.DataItem && e.Item.ItemType != RadListViewItemType.AlternatingItem) { return; } RealEstateItem item = ((RadListViewDataItem)e.Item).DataItem as RealEstateItem; if (item == null) { return; } System.Web.UI.WebControls.Image photo = (System.Web.UI.WebControls.Image)e.Item.FindControl("Photo"); if (isThumbView) { photo.ImageUrl = item.GetPhotoUrl(SinglePhotoType.ThumbnailListPhoto); } else { photo.ImageUrl = item.GetPhotoUrl(SinglePhotoType.FlowListPhoto); } RadListView FeaturesList = (RadListView)e.Item.FindControl("FeaturesList"); FeaturesList.ItemDataBound += new EventHandler <RadListViewItemEventArgs>(FeaturesList_ItemDataBound); FeaturesList.DataSource = item.GetTaxons <FlatTaxon>(TaxonType.Features); FeaturesList.DataBind(); }
public TestPage1() { var listView = new RadListView { BackgroundColor = Color.White, ItemsSource = new ViewModel().Source, ItemTemplate = new DataTemplate(() => { var cell = new ListViewTextCell { TextColor = Color.Black, DetailColor = Color.Gray, }; cell.SetBinding(ListViewTextCell.TextProperty, new Binding(nameof(Book.Title))); cell.SetBinding(ListViewTextCell.DetailProperty, new Binding(nameof(Book.Author))); return(cell); }), LayoutDefinition = new ListViewLinearLayout { ItemLength = 70 }, }; Content = new StackLayout { Children = { listView } }; }
protected override void OnCreate(Bundle bundle) { TabLayoutResource = Resource.Layout.Tabbar; ToolbarResource = Resource.Layout.Toolbar; base.OnCreate(bundle); global::Xamarin.Forms.Forms.Init(this, bundle); LoadApplication(new App()); SetContentView(Resource.Layout.Main); mViewModel = new SampleViewModel(); mViewModel.Buckets.CollectionChanged += Buckets_CollectionChanged; this.mBucketListView = (RadListView)FindViewById(Resource.Id.lv_Dashboard_ListView); clickbtn = (Button)FindViewById(Resource.Id.click); clickbtn.Click += Clickbtn_Click; //clickbtn.SetCommand("Click", mViewModel.GetSampleSelection); mSampleAdapter = new SampleAdapter(this, mViewModel); mBucketListView.SetAdapter(mSampleAdapter); }
protected void grdShopping_DeleteCommand(object sender, Telerik.Web.UI.GridCommandEventArgs e) { Reports rpt = new Reports(); int sum = 0; downloadreq.DeleteDownloadReq(Convert.ToInt32(e.Item.OwnerTableView.DataKeyValues[e.Item.ItemIndex]["RequestID"])); List <ReportDownloadReqDTO> lstdnl = new List <ReportDownloadReqDTO>(); lstdnl = rpt.Get_SelectedAsset_NotPay(Session[sessionNames.userID_StudentOstad].ToString()); grdShopping.DataSource = lstdnl; grdShopping.DataBind(); RadListView lst = (RadListView)ContentPlaceHolder1.FindControl("lstSelectedClass"); if (lst != null) { lst.DataSource = lstdnl; lst.DataBind(); } //Pages.ConfirmCheckList chk = new Pages.ConfirmCheckList(); //RadListView lst = (RadListView)chk.FindControl("lstClass"); //lst.DataSource = lstdnl; //lst.DataBind(); foreach (GridDataItem item in grdShopping.MasterTableView.Items) { if (grdShopping.MasterTableView.Items.Count > 0) { Paybtn.Visible = true; } if (grdShopping.Columns[3].UniqueName == "SumPrice") { sum += int.Parse(item["SumPrice"].Text.Replace(",", "")); } } Session["Fee"] = sum.ToString(); }
public async Task LoadSpeakersAsync(RadListView lv) { if (lv == null) { IsBusy = true; } try { Speakers.Clear(); var items = await DependencyService.Get <IDataStore <Speaker> >().GetItemsAsync(true); foreach (var item in items) { Speakers.Add(item); } } catch (Exception ex) { bool wasManualRefresh = lv != null; Crashes.TrackError(ex, new Dictionary <string, string> { { "Location", "SpeakersViewModel" }, { "Method", "LoadSpeakersAsync" }, { "WasManualRefresh", wasManualRefresh.ToString() }, }); } finally { lv?.EndRefresh(true); IsBusy = false; } }
private void CreateView() { RadListView lv = new RadListView(); lv.Columns.Add("日期"); lv.Columns.Add("产品名称"); }
private void method_0(Class130 class130_0, RadListView radListView_0) { ListViewDataItem listViewDataItem = new ListViewDataItem() { Tag = (object) class130_0 }; radListView_0.Items.Add(listViewDataItem); listViewDataItem[0] = (object) class130_0.ToString(); listViewDataItem[1] = (object) new DataSize(class130_0.Size); }
private void InitializeComponent() { this.lstDrives = new RadListView(); this.label1 = new RadLabel(); this.chkDriveNotSeen = new RadCheckBox(); this.lstDrives.BeginInit(); this.label1.BeginInit(); this.chkDriveNotSeen.BeginInit(); this.BeginInit(); this.SuspendLayout(); this.lstDrives.AllowEdit = false; this.lstDrives.AllowRemove = false; this.lstDrives.Dock = DockStyle.Fill; this.lstDrives.FullRowSelect = false; this.lstDrives.ItemSize = new Size(64, 64); this.lstDrives.Location = new Point(10, 28); this.lstDrives.Name = "lstDrives"; this.lstDrives.Size = new Size(328, 339); this.lstDrives.TabIndex = 0; this.lstDrives.Text = "radListView1"; this.lstDrives.ThemeName = "VisualStudio2012Dark"; this.lstDrives.ViewType = ListViewType.IconsView; this.lstDrives.ItemMouseDoubleClick += new ListViewItemEventHandler(this.lstDrives_ItemMouseDoubleClick); this.label1.Dock = DockStyle.Top; this.label1.Location = new Point(10, 10); this.label1.Name = "label1"; this.label1.Size = new Size(224, 18); this.label1.TabIndex = 1; this.label1.Text = "Double click to select the destination drive :"; this.label1.ThemeName = "VisualStudio2012Dark"; this.chkDriveNotSeen.Dock = DockStyle.Bottom; this.chkDriveNotSeen.Location = new Point(10, 367); this.chkDriveNotSeen.Name = "chkDriveNotSeen"; this.chkDriveNotSeen.Size = new Size(116, 18); this.chkDriveNotSeen.TabIndex = 2; this.chkDriveNotSeen.Text = "I can't see my drive"; this.chkDriveNotSeen.ToggleStateChanged += new StateChangedEventHandler(this.chkDriveNotSeen_ToggleStateChanged); this.AutoScaleDimensions = new SizeF(6f, 13f); this.AutoScaleMode = AutoScaleMode.Font; this.ClientSize = new Size(348, 395); this.Controls.Add((Control)this.lstDrives); this.Controls.Add((Control)this.chkDriveNotSeen); this.Controls.Add((Control)this.label1); this.FormBorderStyle = FormBorderStyle.FixedToolWindow; this.Name = nameof(FrmSelectDrive); this.Padding = new Padding(10); this.RootElement.ApplyShapeToControl = true; this.ShowIcon = false; this.StartPosition = FormStartPosition.CenterParent; this.Text = "Select your destination drive"; this.ThemeName = "VisualStudio2012Dark"; this.FormClosing += new FormClosingEventHandler(this.FrmSelectDrive_FormClosing); this.Load += new EventHandler(this.FrmSelectDrive_Load); this.lstDrives.EndInit(); this.label1.EndInit(); this.chkDriveNotSeen.EndInit(); this.EndInit(); this.ResumeLayout(false); this.PerformLayout(); }
public override View OnCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) { View rootView = inflater.Inflate(Resource.Layout.fragment_list_view_example, container, false); this.listView = (RadListView)rootView.FindViewById(Resource.Id.listView).JavaCast <RadListView>(); ArrayList dataSource = new ArrayList(); EmailMessage message = new EmailMessage(); message.title = "Tech news"; message.content = "Here is your daily LinkedIn feed with news about .NET, Java, iOS and more..."; dataSource.Add(message); message = new EmailMessage(); message.title = "Awaiting Payment"; message.content = "Monthly bills summary: water supply, electricity, earth gas..."; dataSource.Add(message); message = new EmailMessage(); message.title = "Greetings from Hawai"; message.content = "Hey Betty, we've just arrived! What a flight!..."; dataSource.Add(message); this.listView.SetAdapter(new SwipeToExecuteListViewAdapter(dataSource)); seb = new SwipeExecuteBehavior(); seb.AddListener(this); this.listView.AddBehavior(seb); return(rootView); }
public ListViewItemStyleSelectorCSharp() { // >> listview-gettingstarted-listview-csharp var listView = new RadListView { ItemsSource = new ViewModel().Source, ItemTemplate = new DataTemplate(() => { var label = new Label { Margin = new Thickness(10) }; var labelAge = new Label { Margin = new Thickness(10), FontSize = 10 }; var content = new StackLayout(); content.Children.Add(label); label.SetBinding(Label.TextProperty, new Binding(nameof(SourceItem.Name))); content.Children.Add(labelAge); labelAge.SetBinding(Label.TextProperty, new Binding(nameof(SourceItem.Age))); return(new ListViewTemplateCell { View = content }); }) }; // << listview-gettingstarted-listview-csharp listView.ItemStyleSelector = new ExampleListViewStyleSelector(); Content = listView; }
void aoiItemMenu_Click(object sender, EventArgs e) { RadMenuItem item = (sender as RadMenuItem); RadListView lv = item.Tag as RadListView; bool isExsit = false; foreach (ListViewDataItem it in lv.Items) { if (it.Text == item.Text) { isExsit = true; break; } } if (!isExsit) { ListViewDataItem lvitem = new ListViewDataItem(item.Text); lvitem.CheckState = Telerik.WinControls.Enumerations.ToggleState.On; lvitem.Tag = true; lv.Items.Add(lvitem); if (!_aois.Contains(item.Text)) { _aois.Add(item.Text); if (AOIChangedHandler != null) { AOIChangedHandler(this, _aois.ToArray()); } } } }
void InitViews() { toolbar = FindViewById <Android.Support.V7.Widget.Toolbar>(Resource.Id.TbMain); radLvFoodiPlaces = FindViewById <RadListView>(Resource.Id.radLvFoodiPlaces); txtAddressFoodiPlaces = FindViewById <TextView>(Resource.Id.txtAddressFoodiPlaces); txtNameFoodiPlaces = FindViewById <TextView>(Resource.Id.txtNameFoodiPlaces); ratingBar = FindViewById <SfRating>(Resource.Id.sfRatingTotal); foodiPlaces = new List <Results>(); txtScore = FindViewById <TextView>(Resource.Id.txtScore); frReviews = FindViewById <FrameLayout>(Resource.Id.frReviews); txtTopReviewsDate = FindViewById <TextView>(Resource.Id.txtTopReviewsDate); txtTopReviewsDetail = FindViewById <TextView>(Resource.Id.txtTopReviewsDetail); txtMore = FindViewById <TextView>(Resource.Id.txtMore); sfRatingTopReview = FindViewById <SfRating>(Resource.Id.sfRatingTopReview); lnReviewsTop = FindViewById <LinearLayout>(Resource.Id.lnReviewsTop); lnMoreReviews = FindViewById <LinearLayout>(Resource.Id.lnMoreReviews); radReviews = FindViewById <RadListView>(Resource.Id.radReviews); SetSupportActionBar(toolbar); SupportActionBar.Title = "Foodi Places"; SupportActionBar.SetDisplayHomeAsUpEnabled(true); SupportActionBar.SetDisplayShowTitleEnabled(true); SupportActionBar.SetHomeButtonEnabled(true); toolbar.SetTitleTextColor(Color.White); LoadMapLayout(); }
public ListViewTextCellCSharp() { // >> listview-celltypes-textcell-listview-csharp var listView = new RadListView { ItemsSource = new ViewModel().Source, ItemTemplate = new DataTemplate(() => { var cell = new ListViewTextCell { TextColor = Color.Black, DetailColor = Color.Gray, }; cell.SetBinding(ListViewTextCell.TextProperty, new Binding(nameof(Book.Title))); cell.SetBinding(ListViewTextCell.DetailProperty, new Binding(nameof(Book.Author))); return(cell); }), LayoutDefinition = new ListViewLinearLayout { ItemLength = 70 }, }; // << listview-celltypes-textcell-listview-csharp Content = listView; }
protected void btnSelect_Click(object sender, EventArgs e) { { int counter = 0; CommonBusiness cmnb = new CommonBusiness(); foreach (RadListViewItem lvi in RadListView2.Items) { RadListView lstAsset = (RadListView)lvi.FindControl("RadListView3"); foreach (RadListViewItem lviAsset in lstAsset.Items) { Label ClassCode = (Label)lviAsset.FindControl("lbl_AssetID"); CheckBox chk = (CheckBox)lviAsset.FindControl("chk_MeetingDate"); Label lbl_FDate = (Label)lviAsset.FindControl("lbl_FDate"); if (chk.Checked) { lblstcode.Text = Session[sessionNames.userID_StudentOstad].ToString(); dnlreqDTO.StCode = lblstcode.Text; dnlreqDTO.Class_Code = ClassCode.Text; dnlreqDTO.Link_Click = false; // dnlreqDTO.Term = rcbTerm.SelectedValue.ToString(); dnlreq.Create_DownloadRequest(dnlreqDTO); cmnb.InsertIntoStudentLog(Session[sessionNames.userID_StudentOstad].ToString(), DateTime.Now.ToShortTimeString(), int.Parse(Session[sessionNames.appID_StudentOstad].ToString()), 2, ClassCode.Text + "-" + lbl_FDate.Text); counter++; Session[sessionNames.userID_StudentOstad] = lblstcode.Text; } } } Response.Redirect("ConfirmCheckList.aspx"); } }
public override View OnCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) { View rootView = inflater.Inflate(Resource.Layout.fragment_list_view_layouts, container, false); this.listView = (RadListView)rootView.FindViewById(Resource.Id.listView).JavaCast<RadListView>(); Button btnLinear = (Button)rootView.FindViewById(Resource.Id.btnLinear); btnLinear.Click += (object sender, EventArgs e) => { listView.SetLayoutManager(new LinearLayoutManager(this.Activity)); }; Button btnStaggered = (Button)rootView.FindViewById(Resource.Id.btnStaggered); btnStaggered.Click += (object sender, EventArgs e) => { StaggeredGridLayoutManager slm = new StaggeredGridLayoutManager(3, StaggeredGridLayoutManager.Vertical); listView.SetLayoutManager(slm); }; Button btnGrid = (Button)rootView.FindViewById(Resource.Id.btnGrid); btnGrid.Click += (object sender, EventArgs e) => { GridLayoutManager glm = new GridLayoutManager(this.Activity, 3, GridLayoutManager.Vertical, false); listView.SetLayoutManager(glm); }; ArrayList source = new ArrayList(); for (int i = 0; i < 50; i++) { source.Add(this.getRandomText()); } this.listView.SetAdapter(new LayoutsListViewAdapter(source)); return rootView; }
private void cfb5cf413352ed4044535eb4a62d2e98f() { ComponentResourceManager componentResourceManager = new ComponentResourceManager(Type.GetTypeFromHandle(c7ac8dbf316e203189758d0e77f2a745d.c6804baa30a51e813a45fabcfa2b27b79())); this.cee13cbfa6dfc4c406eae547699bdd423 = new RadListView(); this.c5c88963d6e9c4dae998f5bdc712deec4 = new PictureBox(); this.cd036f2b2868b103e71bd7b4fbe25a603 = new RadLabel(); this.cee9946355c6a614ff90b875d32801e38 = new RadLabel(); ((ISupportInitialize)this.cee13cbfa6dfc4c406eae547699bdd423).BeginInit(); ((ISupportInitialize)this.c5c88963d6e9c4dae998f5bdc712deec4).BeginInit(); ((ISupportInitialize)this.cd036f2b2868b103e71bd7b4fbe25a603).BeginInit(); ((ISupportInitialize)this.cee9946355c6a614ff90b875d32801e38).BeginInit(); ((ISupportInitialize)this).BeginInit(); ((RadFormControlBase)this).SuspendLayout(); ((Control)this.cee13cbfa6dfc4c406eae547699bdd423).Dock = (DockStyle)cb85779efa5f9c78fa841b92dceca9094.c4f3ad310245f8f6e7d32122c50c48ab1(8992); ((Control)this.cee13cbfa6dfc4c406eae547699bdd423).Location = new Point(cb85779efa5f9c78fa841b92dceca9094.c4f3ad310245f8f6e7d32122c50c48ab1(8996), cb85779efa5f9c78fa841b92dceca9094.c4f3ad310245f8f6e7d32122c50c48ab1(9000)); ((Control)this.cee13cbfa6dfc4c406eae547699bdd423).Name = c833fbfa18d441f3acb05d803efdf1eb8.c702a9e4555297107d7c7901aa91e5540(12100); ((Control)this.cee13cbfa6dfc4c406eae547699bdd423).Size = new Size(cb85779efa5f9c78fa841b92dceca9094.c4f3ad310245f8f6e7d32122c50c48ab1(9004), cb85779efa5f9c78fa841b92dceca9094.c4f3ad310245f8f6e7d32122c50c48ab1(9008)); ((Control)this.cee13cbfa6dfc4c406eae547699bdd423).TabIndex = cb85779efa5f9c78fa841b92dceca9094.c4f3ad310245f8f6e7d32122c50c48ab1(9012); ((Control)this.cee13cbfa6dfc4c406eae547699bdd423).Text = c833fbfa18d441f3acb05d803efdf1eb8.c702a9e4555297107d7c7901aa91e5540(12100); this.c5c88963d6e9c4dae998f5bdc712deec4.Image = (Image)c27603360ccc8374975348defb9eee9fc.squares; this.c5c88963d6e9c4dae998f5bdc712deec4.Location = new Point(cb85779efa5f9c78fa841b92dceca9094.c4f3ad310245f8f6e7d32122c50c48ab1(9016), cb85779efa5f9c78fa841b92dceca9094.c4f3ad310245f8f6e7d32122c50c48ab1(9020)); this.c5c88963d6e9c4dae998f5bdc712deec4.Name = c833fbfa18d441f3acb05d803efdf1eb8.c702a9e4555297107d7c7901aa91e5540(11217); this.c5c88963d6e9c4dae998f5bdc712deec4.Size = new Size(cb85779efa5f9c78fa841b92dceca9094.c4f3ad310245f8f6e7d32122c50c48ab1(9024), cb85779efa5f9c78fa841b92dceca9094.c4f3ad310245f8f6e7d32122c50c48ab1(9028)); this.c5c88963d6e9c4dae998f5bdc712deec4.TabIndex = cb85779efa5f9c78fa841b92dceca9094.c4f3ad310245f8f6e7d32122c50c48ab1(9032); this.c5c88963d6e9c4dae998f5bdc712deec4.TabStop = cb85779efa5f9c78fa841b92dceca9094.c4f3ad310245f8f6e7d32122c50c48ab1(9036) != 0; ((Control)this.cd036f2b2868b103e71bd7b4fbe25a603).Location = new Point(cb85779efa5f9c78fa841b92dceca9094.c4f3ad310245f8f6e7d32122c50c48ab1(9040), cb85779efa5f9c78fa841b92dceca9094.c4f3ad310245f8f6e7d32122c50c48ab1(9044)); ((Control)this.cd036f2b2868b103e71bd7b4fbe25a603).Name = c833fbfa18d441f3acb05d803efdf1eb8.c702a9e4555297107d7c7901aa91e5540(7428); ((Control)this.cd036f2b2868b103e71bd7b4fbe25a603).Size = new Size(cb85779efa5f9c78fa841b92dceca9094.c4f3ad310245f8f6e7d32122c50c48ab1(9048), cb85779efa5f9c78fa841b92dceca9094.c4f3ad310245f8f6e7d32122c50c48ab1(9052)); ((Control)this.cd036f2b2868b103e71bd7b4fbe25a603).TabIndex = cb85779efa5f9c78fa841b92dceca9094.c4f3ad310245f8f6e7d32122c50c48ab1(9056); ((Control)this.cd036f2b2868b103e71bd7b4fbe25a603).Text = c833fbfa18d441f3acb05d803efdf1eb8.c702a9e4555297107d7c7901aa91e5540(12250); ((Control)this.cee9946355c6a614ff90b875d32801e38).Location = new Point(cb85779efa5f9c78fa841b92dceca9094.c4f3ad310245f8f6e7d32122c50c48ab1(9060), cb85779efa5f9c78fa841b92dceca9094.c4f3ad310245f8f6e7d32122c50c48ab1(9064)); ((Control)this.cee9946355c6a614ff90b875d32801e38).Name = c833fbfa18d441f3acb05d803efdf1eb8.c702a9e4555297107d7c7901aa91e5540(12323); ((Control)this.cee9946355c6a614ff90b875d32801e38).Size = new Size(cb85779efa5f9c78fa841b92dceca9094.c4f3ad310245f8f6e7d32122c50c48ab1(9068), cb85779efa5f9c78fa841b92dceca9094.c4f3ad310245f8f6e7d32122c50c48ab1(9072)); ((Control)this.cee9946355c6a614ff90b875d32801e38).TabIndex = cb85779efa5f9c78fa841b92dceca9094.c4f3ad310245f8f6e7d32122c50c48ab1(9076); ((Control)this.cee9946355c6a614ff90b875d32801e38).Text = c833fbfa18d441f3acb05d803efdf1eb8.c702a9e4555297107d7c7901aa91e5540(12342); ((ContainerControl)this).AutoScaleDimensions = new SizeF(cb85779efa5f9c78fa841b92dceca9094.c8c83a3807da60b9f032d40f2b5665e27(9080), cb85779efa5f9c78fa841b92dceca9094.c8c83a3807da60b9f032d40f2b5665e27(9084)); ((RadFormControlBase)this).set_AutoScaleMode((AutoScaleMode)cb85779efa5f9c78fa841b92dceca9094.c4f3ad310245f8f6e7d32122c50c48ab1(9088)); ((Form)this).ClientSize = new Size(cb85779efa5f9c78fa841b92dceca9094.c4f3ad310245f8f6e7d32122c50c48ab1(9092), cb85779efa5f9c78fa841b92dceca9094.c4f3ad310245f8f6e7d32122c50c48ab1(9096)); ((Control)this).Controls.Add((Control)this.cee9946355c6a614ff90b875d32801e38); ((Control)this).Controls.Add((Control)this.cd036f2b2868b103e71bd7b4fbe25a603); ((Control)this).Controls.Add((Control)this.c5c88963d6e9c4dae998f5bdc712deec4); ((Control)this).Controls.Add((Control)this.cee13cbfa6dfc4c406eae547699bdd423); ((RadFormControlBase)this).set_FormBorderStyle((FormBorderStyle)cb85779efa5f9c78fa841b92dceca9094.c4f3ad310245f8f6e7d32122c50c48ab1(9100)); ((Form)this).Icon = cead0b4edd540ba7cac4363706aa68fb6.cc8e287d5350b43026d33bb80beb131a0(componentResourceManager.GetObject(c833fbfa18d441f3acb05d803efdf1eb8.c702a9e4555297107d7c7901aa91e5540(7256))); ((Control)this).Name = c833fbfa18d441f3acb05d803efdf1eb8.c702a9e4555297107d7c7901aa91e5540(12437); ((Control)this).Padding = new Padding(cb85779efa5f9c78fa841b92dceca9094.c4f3ad310245f8f6e7d32122c50c48ab1(9104)); ((RadFormControlBase)this).get_RootElement().set_ApplyShapeToControl(cb85779efa5f9c78fa841b92dceca9094.c4f3ad310245f8f6e7d32122c50c48ab1(9108) != 0); this.set_ShowIcon(cb85779efa5f9c78fa841b92dceca9094.c4f3ad310245f8f6e7d32122c50c48ab1(9112) != 0); ((Control)this).Text = c833fbfa18d441f3acb05d803efdf1eb8.c702a9e4555297107d7c7901aa91e5540(12456); ((Form)this).Load += new EventHandler(this.c84e00bc2d39f4eb09aca57e788615893); ((ISupportInitialize)this.cee13cbfa6dfc4c406eae547699bdd423).EndInit(); ((ISupportInitialize)this.c5c88963d6e9c4dae998f5bdc712deec4).EndInit(); ((ISupportInitialize)this.cd036f2b2868b103e71bd7b4fbe25a603).EndInit(); ((ISupportInitialize)this.cee9946355c6a614ff90b875d32801e38).EndInit(); ((ISupportInitialize)this).EndInit(); ((RadFormControlBase)this).ResumeLayout(cb85779efa5f9c78fa841b92dceca9094.c4f3ad310245f8f6e7d32122c50c48ab1(9116) != 0); ((Control)this).PerformLayout(); }
protected override void OnCreate(Bundle bundle) { base.OnCreate(bundle); var bindingContext = this.BindingContext; SetContentView(Resource.Layout.Page_PostListView); RadListView listView = FindViewById <RadListView>(Resource.Id.TheListView); }
public CatalogListView(IWorkspace wks, CatalogDef catalogDef, RadPageViewItemPage uiPage, RadListView listView) : base(wks, catalogDef, uiPage) { _listView = listView; LoadCatalogItems(); _listView.MouseUp += new System.Windows.Forms.MouseEventHandler(_listView_MouseUp); InitDelegate(); }
public override View OnCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) { View rootView = inflater.Inflate(Resource.Layout.fragment_list_view_wrap, container, false); this.listView = (RadListView)rootView.FindViewById(Resource.Id.listView).JavaCast<RadListView>(); wrapLayoutManager = new WrapLayoutManager(Activity); this.listView.SetLayoutManager(wrapLayoutManager); MyWrapLayoutAdapter myWrapAdapter = new MyWrapLayoutAdapter(GetData()); this.listView.SetAdapter(myWrapAdapter); Button orientationBtn = (Button)rootView.FindViewById (Resource.Id.orientationBtn); orientationBtn.Click += (object sender, EventArgs e) => { if(wrapLayoutManager.CanScrollHorizontally()) { wrapLayoutManager = new WrapLayoutManager(Activity, OrientationHelper.Vertical); } else { wrapLayoutManager = new WrapLayoutManager(Activity, OrientationHelper.Horizontal); } listView.SetLayoutManager(wrapLayoutManager); }; Button lineSpacingBtn = (Button)rootView.FindViewById (Resource.Id.lineSpacingBtn); lineSpacingBtn.Click += (object sender, EventArgs e) => { if(wrapLayoutManager.LineSpacing == 0) { wrapLayoutManager.LineSpacing = 20; } else { wrapLayoutManager.LineSpacing = 0; } }; Button minItemSpacingBtn = (Button)rootView.FindViewById (Resource.Id.minItemSpacingBtn); minItemSpacingBtn.Click += (object sender, EventArgs e) => { if(wrapLayoutManager.MinimumItemSpacing == 0) { wrapLayoutManager.MinimumItemSpacing = 20; } else { wrapLayoutManager.MinimumItemSpacing = 0; } }; Button gravityBtn = (Button)rootView.FindViewById (Resource.Id.gravityBtn); gravityBtn.Click += (object sender, EventArgs e) => { gravityCounter++; if(gravityCounter > 6) { gravityCounter = 1; } switch (gravityCounter) { case 1: wrapLayoutManager.Gravity = (int)(GravityFlags.End | GravityFlags.Bottom); break; case 2: wrapLayoutManager.Gravity = (int)(GravityFlags.End | GravityFlags.Top); break; case 3: wrapLayoutManager.Gravity = (int)(GravityFlags.Start | GravityFlags.Bottom); break; case 4: wrapLayoutManager.Gravity = (int)(GravityFlags.Start | GravityFlags.Top); break; case 5: wrapLayoutManager.Gravity = (int)(GravityFlags.CenterHorizontal | GravityFlags.CenterVertical); break; case 6: wrapLayoutManager.Gravity = (int)(GravityFlags.FillHorizontal | GravityFlags.FillVertical); break; } }; return rootView; }
public static bool c1de2c5d31ef8b332ef39d04f3d8a5a6c(this RadListView cc6435b78a93f22a72c53f47773ba2802, cba6aa8f767d2e8dfbca2d43d7148c173 c89cbac13be511053120093fce8049319) { // ISSUE: object of a compiler-generated type is created // ISSUE: reference to a compiler-generated method return(((IEnumerable <ListViewDataItem>)cc6435b78a93f22a72c53f47773ba2802.get_Items()).Any <ListViewDataItem>(new Func <ListViewDataItem, bool>(new cdbb55c44507c06175fbfe26cfbaf24b7.c5f5283cb11e791fd6e487302e3f29105() { c89cbac13be511053120093fce8049319 = c89cbac13be511053120093fce8049319 }.c1cbde9497c6754721d3d4a4bb3005fb1))); }
public static bool smethod_0(this RadListView radListView_0, GClass30 gclass30_0) { // ISSUE: object of a compiler-generated type is created // ISSUE: reference to a compiler-generated method return(radListView_0.Items.Any <ListViewDataItem>(new Func <ListViewDataItem, bool>(new GClass20.Class29() { gclass30_0 = gclass30_0 }.method_0))); }
/// <summary> /// Defines the method to be called when the command is invoked. /// </summary> /// <param name="parameter"> /// The parameter used by the command. /// </param> public void Execute(object parameter) { RadListView listView = this.LoadDataControl.Owner; LoadMoreDataContext context = new LoadMoreDataContext { View = listView, DataContext = listView.DataContext }; listView.CommandService.ExecuteCommand(Commands.CommandId.LoadMoreData, context); }
/// <summary> /// /// </summary> /// <param name="listView"></param> public static void AutoFitColumns(this RadListView listView) { var availableWidth = listView.Width - (listView.ListViewElement.ViewElement.VScrollBar.Size.Width + 4); var columns = listView.Columns.Where(c => c.Visible).ToArray(); foreach (var col in columns) { col.Width = availableWidth / columns.Length; } }
/// <summary> /// /// </summary> /// <param name="list"></param> /// <param name="multiSelect"></param> /// <param name="allowRemove"></param> public static void SetPropertiesToList(this RadListView list, bool multiSelect = false, bool allowRemove = false) { list.AllowEdit = false; list.AllowRemove = allowRemove; list.FullRowSelect = true; list.MultiSelect = multiSelect; list.ShowColumnHeaders = false; list.ShowGridLines = false; list.ViewType = ListViewType.DetailsView; }
public ListViewItemStylesCSharp() { // >> listview-styling-listview-csharp var listView = new RadListView { ItemsSource = new ViewModel().Source, ItemTemplate = new DataTemplate(() => { var label = new Label { Margin = new Thickness(10) }; var content = new Grid(); content.Children.Add(label); label.SetBinding(Label.TextProperty, new Binding(nameof(SourceItem.Name))); return(new ListViewTemplateCell { View = content }); }) }; // << listview-styling-listview-csharp var pressedStyle = new ListViewItemStyle() { BackgroundColor = Color.Lime, BorderColor = Color.Red, BorderWidth = 2, BorderLocation = Telerik.XamarinForms.Common.Location.Bottom }; listView.PressedItemStyle = pressedStyle; var selectedStyle = new ListViewItemStyle() { BackgroundColor = Color.Purple, BorderColor = Color.Aqua, BorderWidth = 2, BorderLocation = Telerik.XamarinForms.Common.Location.Bottom }; listView.SelectedItemStyle = selectedStyle; var normalStyle = new ListViewItemStyle() { BackgroundColor = Color.Gray, }; listView.ItemStyle = normalStyle; Content = listView; }
protected void dlAudits_ItemDataBound(object sender, DataListItemEventArgs e) { if (e.Item.ItemType == ListItemType.Item || e.Item.ItemType == ListItemType.AlternatingItem) { int rms_audit_id = Convert.ToInt32(dlAudits.DataKeys[e.Item.ItemIndex]); RadListView rlv = (RadListView)e.Item.FindControl("rlvAuditDocs"); rlv.DataSource = db.AuditDocuments.Where(p => p.rms_audit_id == rms_audit_id).Select(p => new { rms_audit_document_id = p.rms_audit_document_id, document_nm = p.document_nm }).ToList(); rlv.DataBind(); } }
private void InitializeComponent() { ComponentResourceManager componentResourceManager = new ComponentResourceManager(typeof(frmEmuSettings)); this.settingsGrid = new RadPropertyGrid(); this.lstEmus = new RadListView(); this.cmdLaunchEmu = new RadButton(); this.settingsGrid.BeginInit(); this.lstEmus.BeginInit(); this.cmdLaunchEmu.BeginInit(); this.BeginInit(); this.SuspendLayout(); this.settingsGrid.Dock = DockStyle.Fill; this.settingsGrid.Location = new Point(243, 0); this.settingsGrid.Name = "settingsGrid"; this.settingsGrid.Size = new Size(704, 382); this.settingsGrid.TabIndex = 0; this.settingsGrid.Text = "radPropertyGrid1"; this.settingsGrid.EditorRequired += new PropertyGridEditorRequiredEventHandler(this.settingsGrid_EditorRequired); this.lstEmus.AllowEdit = false; this.lstEmus.AllowRemove = false; this.lstEmus.Dock = DockStyle.Left; this.lstEmus.Location = new Point(0, 0); this.lstEmus.Name = "lstEmus"; this.lstEmus.Size = new Size(243, 406); this.lstEmus.TabIndex = 1; this.lstEmus.Text = "radListView1"; this.lstEmus.SelectedItemChanged += new EventHandler(this.lstEmus_SelectedItemChanged); this.cmdLaunchEmu.Dock = DockStyle.Bottom; this.cmdLaunchEmu.Location = new Point(243, 382); this.cmdLaunchEmu.Name = "cmdLaunchEmu"; this.cmdLaunchEmu.Size = new Size(704, 24); this.cmdLaunchEmu.TabIndex = 1; this.cmdLaunchEmu.Text = "Launch the emulator without game to configure it"; this.cmdLaunchEmu.Click += new EventHandler(this.cmdLaunchEmu_Click); this.AutoScaleDimensions = new SizeF(6f, 13f); this.AutoScaleMode = AutoScaleMode.Font; this.ClientSize = new Size(947, 406); this.Controls.Add((Control)this.settingsGrid); this.Controls.Add((Control)this.cmdLaunchEmu); this.Controls.Add((Control)this.lstEmus); this.Icon = (Icon)componentResourceManager.GetObject("$this.Icon"); this.Name = nameof(frmEmuSettings); this.RootElement.ApplyShapeToControl = true; this.StartPosition = FormStartPosition.CenterScreen; this.Text = "Emulator settings"; this.Load += new EventHandler(this.frmEmuSettings_Load); this.settingsGrid.EndInit(); this.lstEmus.EndInit(); this.cmdLaunchEmu.EndInit(); this.EndInit(); this.ResumeLayout(false); }
protected void rgAudits_ItemDataBound(object sender, GridItemEventArgs e) { if ("Records".Equals(e.Item.OwnerTableView.Name)) { if (e.Item is GridDataItem) { GridDataItem item = (GridDataItem)e.Item; int rms_audit_record_id = Convert.ToInt32(item.GetDataKeyValue("rms_audit_record_id")); var audit_rec = db.AuditRecords.FirstOrDefault(p => p.rms_audit_record_id == rms_audit_record_id); HyperLink hlAnalysisNotes = (HyperLink)item.FindControl("hlAnalysisNotes"); hlAnalysisNotes.NavigateUrl = String.Format("javascript:OpenPopup('Modal/ReportPopup.aspx?view=analysisnotesbydaterange&rms_record_id={0}&beg_dt={1:MM/dd/yyyy}&end_dt={2:MM/dd/yyyy}')", audit_rec.rms_record_id, audit_rec.Audit.audit_beg_dt, audit_rec.Audit.audit_end_dt); } } else { if (e.Item is GridDataItem) { GridDataItem item = (GridDataItem)e.Item; int rms_audit_id = Convert.ToInt32(item.GetDataKeyValue("rms_audit_id")); var audit = db.Audits.FirstOrDefault(p => p.rms_audit_id == rms_audit_id); HyperLink hlEditAudit = (HyperLink)item.FindControl("hlEditAudit"); hlEditAudit.NavigateUrl = String.Format("../Task/Audit.aspx?rms_audit_id={0}", rms_audit_id); } if (e.Item.IsInEditMode) { GridEditableItem edititem = (GridEditableItem)e.Item; int rms_audit_id = Convert.ToInt32(edititem.GetDataKeyValue("rms_audit_id")); var audit = db.Audits.FirstOrDefault(p => p.rms_audit_id == rms_audit_id); Literal ltlType = (Literal)edititem.FindControl("ltlAuditType"); Literal ltlResults = (Literal)edititem.FindControl("ltlAuditResults"); Literal ltlReason = (Literal)edititem.FindControl("ltlReason"); Literal ltlData = (Literal)edititem.FindControl("ltlData"); Literal ltlFindings = (Literal)edititem.FindControl("ltlFindings"); RadListView rlvAuditDocs = (RadListView)edititem.FindControl("rlvAuditDocs"); rlvAuditDocs.DataSource = audit.AuditDocuments.Select(p => new { rms_audit_document_id = p.rms_audit_document_id, document_nm = p.document_nm }).OrderBy(p => p.document_nm); rlvAuditDocs.DataBind(); ltlType.Text = audit.AuditType.type + ": " + audit.AuditType.description; ltlResults.Text = audit.AuditResult.result + audit.AuditResult.description; ltlReason.Text = audit.audit_reason; ltlData.Text = audit.audit_data; ltlFindings.Text = audit.audit_findings; } } }
public override View OnCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) { View rootView = inflater.Inflate(Resource.Layout.fragment_list_view_example, container, false); this.listView = (RadListView)rootView.FindViewById(Resource.Id.listView).JavaCast<RadListView>(); this.listView.HeaderView = View.Inflate(this.Activity, Resource.Layout.example_list_view_header_layout, null); this.listView.FooterView = View.Inflate(this.Activity, Resource.Layout.example_list_view_footer_layout, null); ArrayList source = new ArrayList(); for (int i = 0; i < 50; i++) { source.Add("Item " + i); } this.listView.SetAdapter(new MyListViewAdapter(source)); return rootView; }
public override View OnCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) { View rootView = inflater.Inflate(Resource.Layout.fragment_list_view_collapsible, container, false); this.listView = (RadListView)rootView.FindViewById(Resource.Id.listView).JavaCast<RadListView>(); CollapsibleGroupsBehavior collapsibleGroupsBehavior = new CollapsibleGroupsBehavior (); this.listView.AddBehavior (collapsibleGroupsBehavior); ListViewDataSourceAdapter dataListViewAdapter = new ListViewDataSourceAdapter (GetData ()); dataListViewAdapter.AddGroupDescriptor (new MyGroupDescriptor ()); this.listView.SetAdapter (dataListViewAdapter); return rootView; }
public override View OnCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) { View rootView = inflater.Inflate(Resource.Layout.fragment_list_view_sticky_headers, container, false); this.listView = (RadListView)rootView.FindViewById(Resource.Id.listView).JavaCast<RadListView>(); StickyHeaderBehavior stickyHeaders = new StickyHeaderBehavior (); this.listView.AddBehavior (stickyHeaders); MyDataListViewAdapter dataListViewAdapter = new MyDataListViewAdapter (GetData ()); dataListViewAdapter.AddGroupDescriptor (new MyGroupDescriptor ()); this.listView.SetAdapter (dataListViewAdapter); return rootView; }
public override View OnCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) { View rootView = inflater.Inflate(Resource.Layout.fragment_list_view_example, container, false); this.listView = (RadListView) rootView.FindViewById(Resource.Id.listView).JavaCast<RadListView>(); SelectionBehavior sb = new SelectionBehavior(); for (int i = 0; i < 50; i++) { source.Add("Item " + i); } this.listView.AddBehavior(sb); this.listView.SetAdapter(new MyListViewAdapter(source)); return rootView; }
public override View OnCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) { View rootView = inflater.Inflate(Resource.Layout.fragment_list_view_item_animations, container, false); this.listView = (RadListView) rootView.FindViewById(Resource.Id.listView).JavaCast<RadListView>(); ArrayList source = new ArrayList(); source.Add("Item 1"); source.Add("Item 2"); source.Add("Item 3"); source.Add("Item 4"); source.Add("Item 5"); this.listView.SetAdapter(new AnimationsListViewAdapter(source)); Button setFade = (Button)rootView.FindViewById(Resource.Id.btnSetFade); setFade.Click += (object sender, EventArgs e) => { listView.SetItemAnimator(new FadeItemAnimator()); }; Button setSlide = (Button)rootView.FindViewById(Resource.Id.btnSetSlide); setSlide.Click += (object sender, EventArgs e) => { listView.SetItemAnimator(new SlideItemAnimator()); }; Button setScale = (Button)rootView.FindViewById(Resource.Id.btnSetScale); setScale.Click += (object sender, EventArgs e) => { listView.SetItemAnimator(new ScaleItemAnimator()); }; this.btnAddItem = (Button)rootView.FindViewById(Resource.Id.btnAddItem); this.btnAddItem.Click += (object sender, EventArgs e) => { AnimationsListViewAdapter adapter = (AnimationsListViewAdapter)listView.GetAdapter(); adapter.Add(0, "Item " + adapter.ItemCount); }; this.btnRemoveItem = (Button)rootView.FindViewById(Resource.Id.btnRemoveItem); this.btnRemoveItem.Click += (object sender, EventArgs e) => { AnimationsListViewAdapter adapter = (AnimationsListViewAdapter)listView.GetAdapter(); if (adapter.ItemCount > 0) { adapter.Remove(0); } }; return rootView; }
public override View OnCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) { View rootView = inflater.Inflate(Resource.Layout.fragment_list_view_data_operations, container, false); this.listView = (RadListView) rootView.FindViewById(Resource.Id.listView).JavaCast<RadListView>(); this.btnSort = (ToggleButton) rootView.FindViewById(Resource.Id.btnSort); this.btnSort.CheckedChange += (object sender, CompoundButton.CheckedChangeEventArgs e) => { ListViewDataSourceAdapter dsa = (ListViewDataSourceAdapter) listView.GetAdapter(); if (e.IsChecked) { // Sort by price dsa.AddSortDescriptor(new MySortDescriptor()); } else { dsa.ClearSortDescriptors(); } }; this.btnFilter = (ToggleButton) rootView.FindViewById(Resource.Id.btnFilter); this.btnFilter.CheckedChange += (object sender, CompoundButton.CheckedChangeEventArgs e) => { ListViewDataSourceAdapter dsa = (ListViewDataSourceAdapter)listView.GetAdapter (); if (e.IsChecked) { dsa.AddFilterDescriptor (new MyFilterDescriptor ()); } else { dsa.ClearFilterDescriptors (); } }; this.btnGroup = (ToggleButton) rootView.FindViewById(Resource.Id.btnGroup); this.btnGroup.CheckedChange += (object sender, CompoundButton.CheckedChangeEventArgs e) => { ListViewDataSourceAdapter dsa = (ListViewDataSourceAdapter) listView.GetAdapter(); if (e.IsChecked) { dsa.AddGroupDescriptor(new MyGroupDescriptor()); } else { dsa.ClearGroupDescriptors(); } }; this.listView.SetAdapter(new MyDataListViewAdapter(this.getData())); return rootView; }
public override View OnCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) { View rootView = inflater.Inflate(Resource.Layout.fragment_list_view_example, container, false); this.listView = (RadListView) rootView.FindViewById(Resource.Id.listView).JavaCast<RadListView>(); this.source = new ArrayList (); LoadOnDemandBehavior ldb = new LoadOnDemandBehavior(); ldb.Mode = Com.Telerik.Widget.List.LoadOnDemandBehavior.LoadOnDemandMode.Automatic; ldb.AddListener(this); for (int i = 0; i < 50; i++) { source.Add("Item " + i); } listView.AddBehavior(ldb); this.listView.SetAdapter(new MyListViewAdapter(source)); return rootView; }
public override View OnCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) { View rootView = inflater.Inflate(Resource.Layout.fragment_list_view_example, container, false); this.listView = (RadListView) rootView.FindViewById(Resource.Id.listView).JavaCast<RadListView>(); ItemReorderBehavior reorderBehavior = new ItemReorderBehavior(); reorderBehavior.AddListener (this); this.listView.AddBehavior(reorderBehavior); ArrayList source = new ArrayList(); source.Add("Item 1"); source.Add("Item 2"); source.Add("Item 3"); source.Add("Item 4"); source.Add("Item 5"); this.listView.SetAdapter(new ReorderListViewAdapter(source)); return rootView; }
/// <summary> /// Resizes the column. /// </summary> /// <param name="lv">The lv.</param> /// <param name="column">The column.</param> private void ResizeColumn(RadListView lv, ListViewDetailColumn column) { column.Width = lv.ClientRectangle.Width - lv.Margin.All - 15; }
public static void GetVersions(RadListView list) { foreach (dynamic json in from s in Directory.GetDirectories(Variables.McVersions) select new DirectoryInfo(s).Name into versionname where File.Exists(Variables.McVersions + versionname + "/" + versionname + ".jar") & File.Exists(Variables.McVersions + versionname + "/" + versionname + ".json") select JObject.Parse(File.ReadAllText(Variables.McFolder + "/versions/" + versionname + "/" + versionname + ".json"))) { string id = "null", type = "null", time = "null"; try { id = json.id; type = json.type; time = json.releaseTime; } catch (Exception ex) { Logging.Error(ex.ToString()); } list.Items.Add(id, type, time); } }
public DnnListViewItem(RadListViewItemType itemType, RadListView ownerView) : base(itemType, ownerView) { }
public DataLoaderTask(RadListView owner) { this.listView = owner; this.currentCount = ((MyListViewAdapter)owner.GetAdapter ()).ItemCount; }
/// <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); }
public override View OnCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) { View rootView = inflater.Inflate(Resource.Layout.fragment_list_view_deck, container, false); listView = (RadListView)rootView.FindViewById(Resource.Id.listView).JavaCast<RadListView>(); CountryAdapter adapter = new CountryAdapter(getData()); listView.SetAdapter(adapter); deckOfCardsLayoutManager = new DeckOfCardsLayoutManager(Activity); listView.SetLayoutManager(deckOfCardsLayoutManager); Button orientationBtn = (Button)rootView.FindViewById (Resource.Id.orientationBtn); orientationBtn.Click += (object sender, EventArgs e) => { if(orientation == OrientationHelper.Vertical) { orientation = OrientationHelper.Horizontal; } else { orientation = OrientationHelper.Vertical; } deckOfCardsLayoutManager = new DeckOfCardsLayoutManager(Activity, orientation, reverseLayout); listView.SetLayoutManager(deckOfCardsLayoutManager); }; Button reverseBtn = (Button)rootView.FindViewById (Resource.Id.reverseBtn); reverseBtn.Click += (object sender, EventArgs e) => { reverseLayout = !reverseLayout; deckOfCardsLayoutManager = new DeckOfCardsLayoutManager(Activity, orientation, reverseLayout); listView.SetLayoutManager(deckOfCardsLayoutManager); }; Button countBtn = (Button)rootView.FindViewById (Resource.Id.countBtn); countBtn.Click += (object sender, EventArgs e) => { if(deckOfCardsLayoutManager.PerspectiveItemsCount == 2) { deckOfCardsLayoutManager.PerspectiveItemsCount = 5; } else { deckOfCardsLayoutManager.PerspectiveItemsCount = 2; } }; Button perspectiveBtn = (Button)rootView.FindViewById(Resource.Id.perspectiveBtn); perspectiveBtn.Click += (object sender, EventArgs e) => { if(deckOfCardsLayoutManager.Perspective().TranslateStart != PerspectiveChangeInfo.DefaultTranslation) { deckOfCardsLayoutManager.Perspective().TranslateStart = PerspectiveChangeInfo.DefaultTranslation; deckOfCardsLayoutManager.Perspective().TranslateTop = PerspectiveChangeInfo.DefaultTranslation; deckOfCardsLayoutManager.Perspective().TranslateEnd = PerspectiveChangeInfo.DefaultTranslation; } else { deckOfCardsLayoutManager.Perspective().TranslateStart = -50; deckOfCardsLayoutManager.Perspective().TranslateTop = -50; deckOfCardsLayoutManager.Perspective().TranslateEnd = -50; } }; Button previousBtn = (Button)rootView.FindViewById(Resource.Id.previousBtn); previousBtn.Click += (object sender, EventArgs e) => { deckOfCardsLayoutManager.ScrollToPrevious(); }; Button nextBtn = (Button)rootView.FindViewById(Resource.Id.nextBtn); nextBtn.Click += (object sender, EventArgs e) => { deckOfCardsLayoutManager.ScrollToNext(); }; return rootView; }
public override View OnCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) { View rootView = inflater.Inflate(Resource.Layout.fragment_list_view_slide, container, false); listView = (RadListView)rootView.FindViewById(Resource.Id.listView).JavaCast<RadListView>(); CountryAdapter adapter = new CountryAdapter(GetData()); listView.SetAdapter(adapter); slideLayoutManager = new SlideLayoutManager(Activity); listView.SetLayoutManager(slideLayoutManager); Button orientationBtn = (Button)rootView.FindViewById (Resource.Id.orientationBtn); orientationBtn.Click += (object sender, EventArgs e) => { if(orientation == OrientationHelper.Vertical) { orientation = OrientationHelper.Horizontal; } else { orientation = OrientationHelper.Vertical; } slideLayoutManager = new SlideLayoutManager(Activity, orientation); listView.SetLayoutManager(slideLayoutManager); }; Button transitionBtn = (Button)rootView.FindViewById(Resource.Id.transitionBtn); transitionBtn.Click += (object sender, EventArgs e) => { if(slideLayoutManager.TransitionMode == SlideLayoutManager.Transition.SlideAway) { slideLayoutManager.TransitionMode = SlideLayoutManager.Transition.SlideOver; } else { slideLayoutManager.TransitionMode = SlideLayoutManager.Transition.SlideAway; } }; ToggleButton spacingBtn = (ToggleButton)rootView.FindViewById(Resource.Id.spacingBtn); spacingBtn.CheckedChange += (object sender, CompoundButton.CheckedChangeEventArgs e) => { if(e.IsChecked) { slideLayoutManager.ItemSpacing = 50; } else { slideLayoutManager.ItemSpacing = 0; } }; ToggleButton showPreviousButton = (ToggleButton)rootView.FindViewById(Resource.Id.showPrevBtn); showPreviousButton.CheckedChange += (object sender, CompoundButton.CheckedChangeEventArgs e) => { if(e.IsChecked) { slideLayoutManager.PreviousItemPreview = 100; } else { slideLayoutManager.PreviousItemPreview = 0; } }; ToggleButton showNextButton = (ToggleButton)rootView.FindViewById(Resource.Id.showNextBtn); showNextButton.CheckedChange += (object sender, CompoundButton.CheckedChangeEventArgs e) => { if(e.IsChecked) { slideLayoutManager.NextItemPreview = 100; } else { slideLayoutManager.NextItemPreview = 0; } }; Button previousBtn = (Button)rootView.FindViewById(Resource.Id.previousBtn); previousBtn.Click += (object sender, EventArgs e) => { slideLayoutManager.ScrollToPrevious(); }; Button nextBtn = (Button)rootView.FindViewById(Resource.Id.nextBtn); nextBtn.Click += (object sender, EventArgs e) => { slideLayoutManager.ScrollToNext(); }; return rootView; }