Exemple #1
0
        public MainDialogue()
        {
            InitializeComponent();
            var ins = Mgr_Language.Ins;

            mainDialogue = this;
            this.WindowStartupLocation = WindowStartupLocation.CenterScreen;
            InitPage();
            DriverS.Init();

            byte[] a = new byte[2] {
                0x01, 0x04
            };
            int value;

            value = (int)((a[0] & 0xFF) | ((a[1] & 0xFF) << 8));

            this.list_btns.Add(this.Btn_Framework_update);
            this.list_btns.Add(this.manageAddr);
            this.list_btns.Add(this.importWif);
            this.list_btns.Add(this.importWallet);
            Notify();
            Signer.Ins.deleInstallFramework += InstallFramework;
            Signer.Ins.Start();

            //CreateSimHardware();

            LinkSinger();

            hhgate.CustomServer.BeginServer();
        }
Exemple #2
0
        public WindowDriver()
        {
            InitializeComponent();

            DriverS.Init();
            Init();
            InitPage();
            signer.Start(this);

            this.notifyIcon         = new System.Windows.Forms.NotifyIcon();
            this.notifyIcon.Icon    = new System.Drawing.Icon(@"Neodun.ico");
            this.notifyIcon.Visible = true;
            //打开菜单项
            System.Windows.Forms.MenuItem open = new System.Windows.Forms.MenuItem("Open");
            open.Click += new EventHandler(Show);
            //退出菜单项
            System.Windows.Forms.MenuItem exit = new System.Windows.Forms.MenuItem("Exit");
            exit.Click += new EventHandler(Close);
            //关联托盘控件
            System.Windows.Forms.MenuItem[] childen = new System.Windows.Forms.MenuItem[] { open, exit };
            notifyIcon.ContextMenu = new System.Windows.Forms.ContextMenu(childen);

            this.notifyIcon.MouseDoubleClick += new System.Windows.Forms.MouseEventHandler((o, e) =>
            {
                if (e.Button == System.Windows.Forms.MouseButtons.Left)
                {
                    this.Show(o, e);
                }
            });
            //Hide();
        }