public FormMain(AppManager appManager) { Logger.V(">> FormMain.FormMain"); Logger.I("FormMain :: Initialize Front End."); // init member variables m_appManagerRef = appManager; m_prevState = FormWindowState.Normal; m_listModeMenuItems = new List <MenuItem>(); m_miNiCtxNetworkStatus = null; m_miNiCtxIPAddress = null; m_idxNiCtxProxySelection = 0; // init GUI components InitializeComponent(); this.Text = AssemblyProduct; aboutToolStripMenuItem.Text = "&About " + AssemblyProduct; InitGuiNotifyIcon(); // set GUI properties according to profile if (m_appManagerRef.AppProfile.m_isStartMinimized) { this.Visible = false; } // set registry key according to profile m_appManagerRef.ApplyProfileItemAutoStart(); // link AppManager to GUI m_appManagerRef.NotifyGuiNetworkChanged += new AppManager.NotifyNetworkChanged( this.AppMgrNotify_NetworkChanged); // start current work mode m_appManagerRef.StartCurrentWorkMode(); Logger.V("<< FormMain.FormMain"); }
public FormMain(AppManager appManager) { Logger.V(">> FormMain.FormMain"); Logger.I("FormMain :: Initialize Front End."); // init member variables m_appManagerRef = appManager; m_prevState = FormWindowState.Normal; m_listModeMenuItems = new List<MenuItem>(); m_miNiCtxNetworkStatus = null; m_miNiCtxIPAddress = null; m_idxNiCtxProxySelection = 0; // init GUI components InitializeComponent(); this.Text = AssemblyProduct; aboutToolStripMenuItem.Text = "&About " + AssemblyProduct; InitGuiNotifyIcon(); // set GUI properties according to profile if (m_appManagerRef.AppProfile.m_isStartMinimized) { this.Visible = false; } // set registry key according to profile m_appManagerRef.ApplyProfileItemAutoStart(); // link AppManager to GUI m_appManagerRef.NotifyGuiNetworkChanged += new AppManager.NotifyNetworkChanged( this.AppMgrNotify_NetworkChanged); // start current work mode m_appManagerRef.StartCurrentWorkMode(); Logger.V("<< FormMain.FormMain"); }