Пример #1
0
 public FormNote(string msg)
 {
     note       = msg;
     loginPanel = new AwPanel();
     sysParam   = SystemParam.GetInstance();
     InitializeComponent();
 }
Пример #2
0
 public FormPwdSetup(ref SystemParam systemParam)
 {
     sysParam   = systemParam;
     loginPanel = new AwPanel();
     crypt      = new Crypt();
     xmlDb      = AwDbFactory.CreateDBEngine();
     InitializeComponent();
 }
Пример #3
0
 public Login(ref SystemParam paramSys)
 {
     sysParam   = paramSys;
     loginPanel = new AwPanel();
     crypt      = new Crypt();
     xmlDb      = AwDbFactory.CreateDBEngine();
     pwdList    = new List <string>();
     InitializeComponent();
 }
Пример #4
0
        private void InitOutputControls()
        {
            Point point = inputIoPanel.Location;

            point.Y += inputIoPanel.Height + 20;

            outputIoPanel                           = new AwPanel();
            outputIoPanel.Location                  = point;
            outputIoPanel.BorderColor               = sysParam.ControlFrameColor;
            outputIoPanel.BorderWidth               = 3;
            outputIoPanel.Width                     = this.Width - 40;
            outputIoPanel.Height                    = 160;
            outputIoPanel.Parent                    = this;
            outputIoPanel.TitleBackground.Height    = 30;
            outputIoPanel.TitleBackground.BackColor = sysParam.ControlBackgroundColor;
            outputIoPanel.Title.Text                = "IOÊä³ö";

            point.X = 20;
            point.Y = outputIoPanel.Title.Height + 20;

            for (int i = 1; i < 25; i++)
            {
                AwIoOutputButton ioOutput = new AwIoOutputButton(i.ToString());
                ioOutput.Parent          = outputIoPanel;
                ioOutput.Width           = 30;
                ioOutput.Height          = 50;
                ioOutput.Location        = point;
                ioOutput.AwButton.Click += button_Click;
                outputIoList.Add(ioOutput);

                point.X += ioOutput.Width + 10;

                //if ( ( point.X + ioOutput.Width + 20 ) > outputIoPanel.Width)
                //{
                //    point.X = 10;
                //    point.Y += ioOutput.Height + 20;
                //}

                if (i == 12)
                {
                    point.X  = 20;
                    point.Y += ioOutput.Height + 10;
                }
            }
        }
Пример #5
0
        private void InitInputControls()
        {
            Point point = new Point(20, 20);

            inputIoPanel                           = new AwPanel();
            inputIoPanel.Location                  = point;
            inputIoPanel.BorderColor               = sysParam.ControlFrameColor;
            inputIoPanel.BorderWidth               = 3;
            inputIoPanel.Width                     = this.Width - 40;
            inputIoPanel.Height                    = 160;
            inputIoPanel.Parent                    = this;
            inputIoPanel.TitleBackground.Height    = 30;
            inputIoPanel.TitleBackground.BackColor = sysParam.ControlBackgroundColor;
            inputIoPanel.Title.Text                = "IOÊäÈë";

            point.X = 40;
            point.Y = inputIoPanel.Title.Height + 20;

            for (int i = 1; i < 19; i++)
            {
                AwIoStatus ioInput = new AwIoStatus(i.ToString());
                ioInput.Parent   = inputIoPanel;
                ioInput.Width    = 30;
                ioInput.Height   = 50;
                ioInput.Location = point;
                inputIoList.Add(ioInput);

                point.X += ioInput.Width + 20;

                //if ( ( point.X + ioInput.Width + 20 ) > inputIoPanel.Width)
                //{
                //    point.X = 10;
                //    point.Y += ioInput.Height + 20;
                //}

                if (i == 9)
                {
                    point.X  = 40;
                    point.Y += ioInput.Height + 10;
                }
            }
        }
Пример #6
0
 public FormAbout(ref SystemParam paramSys)
 {
     sysParam     = paramSys;
     versionPanel = new AwPanel();
     InitializeComponent();
 }