Esempio n. 1
0
        public frmMain()
        {
            InitializeComponent();

            #region Version Info
            object[] attribute = this.GetType().Assembly.GetCustomAttributes(typeof(AssemblyDescriptionAttribute), false);
            AssemblyDescriptionAttribute desc = (AssemblyDescriptionAttribute)(attribute[0]);
            attribute = this.GetType().Assembly.GetCustomAttributes(typeof(AssemblyTitleAttribute), false);
            AssemblyTitleAttribute title = (AssemblyTitleAttribute)(attribute[0]);
            this.Text = $"[{ title.Title } - {Process.GetCurrentProcess().Id}]  {desc.Description}  V{Application.ProductVersion}";
            #endregion

            #region Form Layout
            VS2003Theme t = new VS2003Theme();
            dockPanel1.Theme = t;
            //Utility.SubscribeForm.Show(dockPanel1, WeifenLuo.WinFormsUI.Docking.DockState.DockRight);
            //Utility.RequestForm.Show(Utility.SubscribeForm.Pane, Utility.SubscribeForm);
            //Utility.SDataForm.Show(dockPanel1);
            //Utility.RDataForm.Show(dockPanel1);
            Utility.SubDockForm.Show(dockPanel1);
            //Utility.ReqDockForm.Show(dockPanel1);
            Utility.SettingForm.Show(dockPanel1, DockState.DockRight);
            Utility.MsgForm.Show(dockPanel1, DockState.DockBottomAutoHide);
            #endregion

            Utility.PUB = new Pub(ConnectType.Bind, Utility.Load <int>("ZMQ", "PUBPORT"));
            Utility.REP = new Rep(ConnectType.Bind, Utility.Load <int>("ZMQ", "REPPORT"));
            Utility.REP.OnREQReceived += new Rep.OnREQReceivedDelegate(OnREQReceived);
            Utility.REP.Start();

            //Utility.LoadConfig(tsPublish);
            tsPublish.Checked = Utility.Load <bool>("REDIS", "PUBLISH");
            m_Channel         = Utility.Load <string>("REDIS", "CHANNEL");
        }
Esempio n. 2
0
        public frmDock()
        {
            InitializeComponent();

            VS2003Theme t = new VS2003Theme();

            dockPanel1.Theme = t;
        }