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)