Developing smartphone software using C #: Push Chests (17)

Source: Internet
Author: User

This is the "Developing smartphone software using C #: Push boxesArticle 17th of the series. In this article, the Window/selectgroupdlg.cs source program files are introduced. This source program file contains the Selectgroupdlg class, which inherits from the System.Windows.Forms.Form class, which represents the Select Group dialog box for the Push box. As shown in the following:



here is a partial code for the source program of Window/selectgroupdlg.designer.cs:

namespaceSkyiv.Ben.PushBox.Window
{
PartialclassSelectgroupdlg
{

//some code is omitted here.

PrivateSystem.Windows.Forms.Button Btnok;
PrivateSystem.Windows.Forms.Button Btncancel;
PrivateSystem.Windows.Forms.ListBox Lbxgroup;
}
}
here is the source code for SelectGroupDlg.cs:

1usingSystem.Windows.Forms;
2
3namespaceSkyiv.Ben.PushBox.Window
4{
5  /// <summary>
6  ///Select Group dialog box
7  /// </summary>
8   PublicPartialclassSelectgroupdlg:form
9  {
Ten     Public string[] Groups {Set{Lbxgroup.datasource=Value } }
One
A     Public intGroup
-    {
-       Get { returnLbxgroup.selectedindex;}
the      Set{Lbxgroup.selectedindex=value;}
- }
-
-     PublicSelectgroupdlg (BOOListopmost)
+    {
- InitializeComponent ();
+topmost=Istopmost;
A    }
at  }
-}

Copyright NOTICE: This article for Bo Master http://www.zuiniusn.com original article, without Bo Master permission not reproduced.

Developing smart phone software using C #: Push Chests (17)

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.