public ConstructerManager(MainFrm main) { MainUI = main; MainUI.CTClearBtn.Click += CTClearBtn_Click; MainUI.CTRemoveBtn.Click += CTRemoveBtn_Click; MainUI.CTHeaderTxt.TextChanged += CTHeaderTxt_TextChanged; MainUI.CTAppendStringBtn.Click += CTAppendStringBtn_Click; MainUI.CTAppendBooleanBtn.Click += CTAppendBooleanBtn_Click; MainUI.CTAppendIntegerBtn.Click += CTAppendIntegerBtn_Click; MainUI.CTMoveUpBtn.Click += CTMoveUpBtn_Click; MainUI.CTMoveDownBtn.Click += CTMoveDownBtn_Click; MainUI.CTTransferBelowBtn.Click += CTTransferBelowBtn_Click; MainUI.CTConstructerVw.ItemActivate += CTConstructerVw_ItemActivate; MainUI.CTConstructerVw.ItemSelected += CTConstructerVw_ItemSelected; MainUI.CTConstructerVw.ItemsDeselected += CTConstructerVw_ItemsDeselected; MainUI.CTLiveEditingChckbx.CheckedChanged += CTLiveEditingChckbx_CheckedChanged; MainUI.CTLiveEditingChckbx.Checked = true; UpdatePacketTextLabel(); }
public ExtensionManager(MainFrm main) : base(main.Connection) { MainUI = main; ExtensionAction += ExtensionManager_ExtensionAction; MainUI.ETOpenMenuBtn.Click += ETOpenMenuBtn_Click; MainUI.ETInstallMenuBtn.Click += ETInstallExtensionBtn_Click; MainUI.ETUninstallMenuBtn.Click += ETUninstallExtensionBtn_Click; MainUI.ETInstallExtensionBtn.Click += ETInstallExtensionBtn_Click; MainUI.ETUninstallExtensionBtn.Click += ETUninstallExtensionBtn_Click; MainUI.ETExtensionAOTChckbx.CheckedChanged += ETExtensionAOTChckbx_CheckedChanged; MainUI.ContractorVw.InitializeContractor(this); MainUI.ContractorVw.ItemSelected += ContractorVw_ItemSelected; MainUI.ContractorVw.ItemsDeselected += ContractorVw_ItemsDeselected; _openFileDialog = new OpenFileDialog(); _openFileDialog.DefaultExt = "dll"; _openFileDialog.Title = "Tanji ~ Install Extension"; _openFileDialog.Filter = "Executable (*.exe)|*.exe|Dynamic Link Library (*.dll)|*.dll"; MainUI.Connection.DataIncoming += DataIncoming; MainUI.Connection.DataOutgoing += DataOutgoing; }
public HandshakeManager(MainFrm main) { _main = main; _main.Connection.DataIncoming += DataIncoming; _main.Connection.DataOutgoing += DataOutgoing; }
public UpdateFrm(MainFrm main) { InitializeComponent(); MainUI = main; LocalVersion = new Version(Application.ProductVersion); MainUI.TanjiVersionTxt.Text = "v" + LocalVersion; }
public SchedulerManager(MainFrm main) { MainUI = main; MainUI.STCreateBtn.Click += STCreateBtn_Click; MainUI.STDestinationTxt.SelectedIndex = 1; }
public InjectionManager(MainFrm main) { MainUI = main; PrimitiveMngr = new PrimitiveManager(main); SchedulerMngr = new SchedulerManager(main); ConstructerMngr = new ConstructerManager(main); MainUI.ITSendToClientBtn.Click += ITSendToClientBtn_Click; MainUI.ITSendToServerBtn.Click += ITSendToServerBtn_Click; }
public static void Main() { CultureInfo.CurrentUICulture = CultureInfo.CurrentCulture = CultureInfo.GetCultureInfo("en-us"); Application.EnableVisualStyles(); Application.SetCompatibleTextRenderingDefault(false); MainForm = new MainFrm(); Application.Run(MainForm); }
/// <summary> /// 收到好友申请 /// </summary> /// <param name="username"></param> /// <param name="reason"></param> private void onContactInvited(string username, string reason) { AudioPlayer.shard.playTips(); MainFrm main = (MainFrm)Application.OpenForms["MainFrm"]; if (main == null) { return; } main.loadAddFriend(); }
public AboutPage(MainFrm ui, TabPage tab) : base(ui, tab) { TanjiRepo = new GitRepository("ArachisH", "Tanji"); LocalVersion = new Version(Application.ProductVersion); UI.DonateBtn.Click += DonateBtn_Click; UI.Shown += UI_Shown; UI.TanjiVersionTxt.Text = ("v" + LocalVersion); }
public UpdateFrm(MainFrm main) { InitializeComponent(); MainUI = main; LocalVersion = new Version(Application.ProductVersion); MainUI.TanjiVersionTxt.Text = "v" + LocalVersion; if (!main.IsDebugging) _checkForUpdatesTask = CheckForUpdatesAsync(); }
public AnnouncementService(Timer timer, ListBox listBox, Button btnStart, Button btnDisconnect) { _mainFrm = Globals.mainFrm; _mainServer = Globals.MainServerClient; _accouncemnetListBox = listBox; _btnStart = btnStart; _btnDisconnect = btnDisconnect; _AsMsgTimer = timer; ConnectDB(); LoadMessages(); }
private void toolStripMenuItem1_Click(object sender, EventArgs e) { if (!ExistsMdiChildrenlnstance("MainFrm")) { MainFrm maifrm = new MainFrm(); maifrm.MdiParent = this; maifrm.WindowState = FormWindowState.Maximized; maifrm.Dock = DockStyle.Fill; maifrm.Show(); } }
/// <summary> /// 收到普通信息 /// </summary> /// <param name="mMessages"></param> private void onReciveMessage(EMMessage[] mMessages) { AudioPlayer.shard.playTips(); MainFrm main = (MainFrm)Application.OpenForms["MainFrm"]; if (main == null) { return; } main.refreshConversationList(); }
/// <summary> /// 联系人删除 /// </summary> /// <param name="user"></param> private void onContactDeleted(string user) { MainFrm main = (MainFrm)Application.OpenForms["MainFrm"]; if (main == null) { return; } main.removeConversation(user); main.refreshFriendFromServer(); }
public InjectionPage(MainFrm ui, TabPage tab) : base(ui, tab) { UI.ITSendToClientBtn.Click += ITSendToClientBtn_Click; UI.ITSendToServerBtn.Click += ITSendToServerBtn_Click; FiltersPg = new FiltersPage(this, UI.FiltersTab); PrimitivePg = new PrimitivePage(this, UI.PrimitiveTab); SchedulerPg = new SchedulerPage(this, UI.SchedulerTab); ConstructerPg = new ConstructerPage(this, UI.ConstructerTab); }
static void Main() { LoadConfig(ConfigurationFilename); #if !DEBUG AppDomain.CurrentDomain.UnhandledException += OnUnhandledException; #endif //new update server - Forced change to prevent reseting a users config Config.UpdaterAddress = "/launcher/version.php"; Config.ServerInfoAddress = "/launcher/server.php"; LanguageManager = new LanguageManager(); LanguageManager.Load(Config.Language); if (LauncherHelper.CheckInstance()) { if (MessageBox.Show(LanguageManager.Translation.pmsbProgRun) == DialogResult.OK) { return; } } ChatServer = new ChatClient(); Application.EnableVisualStyles(); Application.SetCompatibleTextRenderingDefault(false); CheckmateServerList.Add("Checkmate USA+CN", new ServerInfo("Checkmate USA+CN", "173.224.211.158", 21001)); CheckmateServerList.Add("Checkmate EU", new ServerInfo("Checkmate EU", "94.247.40.146", 7980)); if (LauncherHelper.TestConnection()) { #if !DEBUG if (NewUpdateCheck()) { return; } if (!CheckServerInfo("http://91.250.87.52")) { CheckServerInfo("http://ygopro.de"); } #endif } else { MessageBox.Show("An internet connection is required to play online."); } #if DEBUG Config.ServerAddress = "127.0.0.1"; Config.ChatPort = 8933; Server = new ServerInfo("DevPro", "127.0.0.1", 3333); #endif MainForm = new MainFrm(); Application.Run(MainForm); }
public frmStraightLineDis(MainFrm _pMainFrm) { // // Windows 窗体设计器支持所必需的 // pMainFrm = _pMainFrm; InitializeComponent(); // // TODO: 在 InitializeComponent 调用后添加任何构造函数代码 // }
public GUITimer(MainFrm mf) { _form = mf; _guiTimer = new Timer(); if (this.Interval > 0) { _guiTimer.Interval = this.Interval; } _guiTimer.Interval = 100; _guiTimer.Enabled = true; _guiTimer.Elapsed += new ElapsedEventHandler(_guiTimer_Tick); }
public ModulesManager(MainFrm ui) : base("Installed Modules") { _moduleItems = new Dictionary <Type, ModuleItem>(); UI = ui; DataAwaiters = new Dictionary <string, TaskCompletionSource <DataInterceptedEventArgs> >(); Task grabRemoteModuleTask = GrabRemoteModuleAsync(); }
public EncoderManager(MainFrm main) { MainUI = main; MainUI.EDTDecodeShortBtn.Click += EDTDecodeShortBtn_Click; MainUI.EDTEncodeShortBtn.Click += EDTEncodeShortBtn_Click; MainUI.EDTEncodeIntegerBtn.Click += EDTEncodeIntegerBtn_Click; MainUI.EDTDecodeIntegerBtn.Click += EDTDecodeIntegerBtn_Click; MainUI.EDTDecodeValuesBtn.Click += EDTDecodeValuesBtn_Click; }
public PacketLoggerFrm(MainFrm main) { InitializeComponent(); MainUI = main; _write = Write; _writeHighlight = WriteHighlight; Intercepted = new Queue <InterceptedEventArgs>(); MainUI.Connection.DataIncoming += DataIncoming; MainUI.Connection.DataOutgoing += DataOutgoing; }
private bool bDataLinePath; //判断是否通过打开对话框选择线障碍特征类 public frmRasterIDW(MainFrm _pMainFrm) { // // Windows 窗体设计器支持所必需的 // pMainFrm = _pMainFrm; InitializeComponent(); // // TODO: 在 InitializeComponent 调用后添加任何构造函数代码 // }
// Token: 0x0600023C RID: 572 RVA: 0x00016D44 File Offset: 0x00014F44 public void SetupRecieveCallback(MainFrm app) { try { AsyncCallback callback = new AsyncCallback(app.OnRecievedData); this.m_sock.BeginReceive(this.m_byBuff, 0, this.m_byBuff.Length, SocketFlags.None, callback, this); } catch (Exception ex) { Log.w(string.Format("Recieve callback setup failed! {0}", ex.Message)); } }
/// <summary> /// 离开群组 /// </summary> /// <param name="group"></param> /// <param name="reason"></param> private void onLeaveGroup(EMGroup group, EMGroupLeaveReason reason) { DBHelper.Instance.DeleteGroup(group.groupId()); client.getChatManager().removeConversation(group.groupId(), true); MainFrm main = (MainFrm)Application.OpenForms["MainFrm"]; if (main == null) { return; } main.removeConversation(group.groupId()); }
public frmShortestPath(MainFrm _pMainFrm) { // // Windows 窗体设计器支持所必需的 // pMainFrm = _pMainFrm; InitializeComponent(); // // TODO: 在 InitializeComponent 调用后添加任何构造函数代码 // }
public TanjiPage(MainFrm ui, TabPage tab) { UI = ui; Tab = tab; Title = tab.Text; TabControl = (TabControl)tab.Parent; TabControl.Selecting += TabControl_Selecting; TabControl.Deselecting += TabControl_Deselecting; _onPropertyChanged = OnPropertyChanged; }
/// <summary> /// 拉去用户数据 /// </summary> /// <param name="userID">用户ID</param> /// <param name="complite">完成回调</param> public void GetUser(string userID, UserComplite complite) { lock (ulock) { if (user.Contains(userID)) { return; } user.Add(userID); } ThreadPool.QueueUserWorkItem((o) => { GetUserSendModel model = new GetUserSendModel(); model.user_id = userID; HttpUitls.Instance.get <GetUserReciveModel>("user/getUserByUserId", model, (json) => { if (json.code == 200) { complite(json.data); DBHelper.Instance.addStronger(json.data); } else { if (json.message.Contains("重新登录")) { MainFrm frm = (MainFrm)Application.OpenForms["MainFrm"]; frm.gotoLogin(); } } lock (ulock) { if (user.IndexOf(userID) > -1) { user.RemoveAt(user.IndexOf(userID)); } } }, (code) => { if (code > 500 && code < 503) { MainFrm frm = (MainFrm)Application.OpenForms["MainFrm"]; frm.gotoLogin(); } lock (ulock) { if (user.IndexOf(userID) > -1) { user.RemoveAt(user.IndexOf(userID)); } } }); }); }
private async void VisitURLAsync() { URLHTML = await MainFrm.RunBusyWork(() => { HttpStatusCode code; var item2 = helper.GetHtml(Http, out code, URL); return(item2); }); HtmlDoc.LoadHtml(URLHTML); OnPropertyChanged("URLHTML"); }
public UpdateFrm(MainFrm main) { InitializeComponent(); MainUI = main; LocalVersion = new Version(Application.ProductVersion); MainUI.TanjiVersionTxt.Text = "v" + LocalVersion; if (!main.IsDebugging) { _checkForUpdatesTask = CheckForUpdatesAsync(); } }
private async void GetXPathAsync() { if (currentXPaths == null) return; var r = await MainFrm.RunBusyWork(() => currentXPaths.MoveNext(), "正在查询XPath"); if (r) SelectXPath = currentXPaths.Current; else { XLogSys.Print.Warn("找不到其他符合条件的节点,搜索器已经返回开头"); currentXPaths = HtmlDoc.SearchXPath(SelectText, () => IsAttribute).GetEnumerator(); } }
public frmAnalysisOption(MainFrm _pMainFrm) { // // Windows 窗体设计器支持所必需的 // pMainFrm = _pMainFrm; InitializeComponent(); // // TODO: 在 InitializeComponent 调用后添加任何构造函数代码 // }
public PacketLoggerFrm(MainFrm mainUI) { InitializeComponent(); _refreshLog = RefreshLog; _writeHighlight = WriteHighlight; _invalidStructures = new Dictionary <HDestination, IList <ushort> >(2); _invalidStructures[HDestination.Client] = new List <ushort>(); _invalidStructures[HDestination.Server] = new List <ushort>(); MainUI = mainUI; Intercepted = new Queue <InterceptedEventArgs>(); }
public ConnectFrm(MainFrm main) { InitializeComponent(); MainUI = main; _ipMatcher = new Regex( "^(25[0-5]|2[0-4]\\d|[0-1]?\\d?\\d)(\\.(25[0-5]|2[0-4]\\d|[0-1]?\\d?\\d)){3}$"); if (!Directory.Exists("Modified Clients")) Directory.CreateDirectory("Modified Clients"); CreateTrustedRootCertificate(); Eavesdropper.IsSslSupported = true; }
public PacketLoggerFrm(MainFrm mainUI) { InitializeComponent(); _refreshLog = RefreshLog; _writeHighlight = WriteHighlight; _pushToQueueLock = new object(); _invalidParsers = new List <ushort>(); _invalidStructures = new List <ushort>(); MainUI = mainUI; Intercepted = new Queue <DataInterceptedEventArgs>(); }
public frmRoute(MainFrm _pMainFrm) { // // Windows 窗体设计器支持所必需的 // InitializeComponent(); pMainFrm = _pMainFrm; pGISHelper = new MyFunction.GISHelperFunction(); // // TODO: 在 InitializeComponent 调用后添加任何构造函数代码 // }
public PrintForm(MainFrm mainFrm) { this.mainFrm = mainFrm; InitializeComponent(); PDFXEdit.IUniqueStrings prnList = mainFrm.pdfCtl.Inst.GetPrinters(); foreach (string s in prnList) { cbPrinter.Items.Add(s); } int prnCur = cbPrinter.FindString(mainFrm.pdfCtl.Inst.GetDefaultPrinter()); if (prnCur >= 0) { cbPrinter.SelectedIndex = prnCur; } cbDuplex.SelectedIndex = 0; // auto cbPagesSubset.SelectedIndex = 0; // all string[] scaleTypes = new string[] { "None", "FitToMargins", "ReduceToMargins", "CustomZoom", "TileLarge", "TileAll", "Multiple", "Booklet", }; foreach (string s in scaleTypes) { cbPagesScale.Items.Add(new MainFrm.ComboboxItem2(MainFrm.SID2DispName(s), s)); } Array arr = Enum.GetValues(typeof(PrintFilters)); for (int i = arr.GetLowerBound(0); i < arr.GetUpperBound(0); i++) { string s = Enum.GetName(typeof(PrintFilters), arr.GetValue(i)); cbPrintDocFilter.Items.Add(new MainFrm.ComboboxItem(MainFrm.SID2DispName(s), (int)arr.GetValue(i))); } cbPagesScale.SelectedIndex = 0; // none cbPrintDocFilter.SelectedIndex = 0; // document cbClrOver.SelectedIndex = 0; }
public frmClosestFacility(MainFrm _pMainFrm) { // // Windows 窗体设计器支持所必需的 // pMainFrm = _pMainFrm; pGISHelper = new MyFunction.GISHelperFunction(); InitializeComponent(); // // TODO: 在 InitializeComponent 调用后添加任何构造函数代码 // }
private void btnLogin_Click(object sender, EventArgs e) { SetData(); if (objbLogin.LoginAuthentication(txtPassword.Text.Trim())) { MainFrm frm1 = new MainFrm(); this.Hide(); frm1.Show(); } else { MessageBox.Show("Login Fail !!!"); } }
public TanjiConnectFrm(MainFrm main) { InitializeComponent(); Main = main; _uiContext = TaskScheduler.FromCurrentSynchronizationContext(); if (!Directory.Exists("Modified Clients")) Directory.CreateDirectory("Modified Clients"); CreateTrustedRootCertificate(); Eavesdropper.IsSslSupported = true; Eavesdropper.EavesdropperResponse += EavesdropperResponse; }
public SchedulerManager(MainFrm main) { MainUI = main; MainUI.STClearBtn.Click += STClearBtn_Click; MainUI.STRemoveBtn.Click += STRemoveBtn_Click; MainUI.STCreateBtn.Click += STCreateBtn_Click; MainUI.STStopAllBtn.Click += STStopAllBtn_Click; MainUI.STStartAllBtn.Click += STStartAllBtn_Click; MainUI.STSchedulerVw.ScheduleTick += STSchedulerVw_ScheduleTick; MainUI.STAutoStartChckbx.CheckedChanged += STAutoStartChckbx_CheckedChanged; MainUI.STSchedulerVw.ItemChecked += STSchedulerVw_ItemChecked; MainUI.STSchedulerVw.ItemSelected += STSchedulerVw_ItemSelected; MainUI.STSchedulerVw.ItemsDeselected += STSchedulerVw_ItemsDeselected; MainUI.STDestinationTxt.SelectedIndex = 1; }
public PrimitiveManager(MainFrm main) { MainUI = main; MainUI.InjectionTabs.Selected += InjectionTabs_Selected; MainUI.PTCutBtn.Click += PTCutBtn_Click; MainUI.PTCopyBtn.Click += PTCopyBtn_Click; MainUI.PTPasteBtn.Click += PTPasteBtn_Click; MainUI.PTUndoBtn.Click += PTUndoBtn_Click; MainUI.PTSelectAllBtn.Click += PTSelectAllBtn_Click; MainUI.PTStringBtn.Click += PTStringBtn_Click; MainUI.PTBooleanBtn.Click += PTBooleanBtn_Click; MainUI.PTIntegerBtn.Click += PTIntegerBtn_Click; MainUI.PTLengthHeaderBtn.Click += PTLengthHeaderBtn_Click; MainUI.PTPacketInfoLbl.SizeChanged += PTPacketInfoLbl_SizeChanged; }
private void btnLogin_Click(object sender, EventArgs e) { try { string dbCon = "Data Source=(LocalDB)\v11.0;AttachDbFilename=C:/Visual Studio Projects/IEMHR-WFA/IEMHR-WFA/App_Data/IEMHR_DB.mdf;Integrated Security=True"; SqlConnection myCon = new SqlConnection(dbCon); SqlCommand cmd = new SqlCommand("SELECT * FROM IEMHR_DB.AspNetUsers WHERE UserName='******' and PasswordHash='" + txtPassword.Text + "' ; ", myCon); SqlDataReader myReader; myCon.Open(); myReader = cmd.ExecuteReader(); int count = 0; while (myReader.Read()) { count = count + 1; } if (count == 1) { MessageBox.Show("User name and Password is correct ..Access Granted"); this.Hide(); MainFrm mainForm = new MainFrm(); mainForm.ShowDialog(); } else if (count > 1) { MessageBox.Show("Duplicate User Name and Password ...Access Denied"); } else MessageBox.Show("User Name and Password is Not Correct ..Please Try Again"); myCon.Close(); } catch (Exception ex) { MessageBox.Show(ex.Message); } }
static void Main(string[] args) { Application.EnableVisualStyles(); Application.SetCompatibleTextRenderingDefault(false); // Windows Vista Virtualization Problem FIX if (fixVistaVirtualizationError()) return; // End of Windows Vista FIX Utility.Updater updater = new Utility.Updater(); if (updater.Update()) return; System.Threading.Thread.CurrentThread.CurrentUICulture = System.Threading.Thread.CurrentThread.CurrentCulture; Splash.Show(3000); Model.Model model = Model.Model.Instance; Controller.Controller controller = Controller.Controller.Instance; View.GraphicViewManager view = View.GraphicViewManager.Instance; model.Reset(); //TestModel(model); using (MainFrm frm = new MainFrm()) { frm.Show(); try { view.InitializeGraphics(frm.ScenePanel, frm); controller.MainFrm = frm; if (args.Length > 0) controller.LoadModel(args[0]); //////// TESTS ///////////// //TestView(view); //model.AbstractCases.Add(new Canguro.Model.Load.AnalysisCase("aCase1")); //Model.Load.AnalysisCase anc = model.AbstractCases[0] as Model.Load.AnalysisCase; //if (anc != null) //{ // Model.Load.StaticCaseProps props = anc.Properties as Model.Load.StaticCaseProps; // if (props != null) // { // List<Model.Load.StaticCaseFactor> list = props.Loads; // list.Add(new Canguro.Model.Load.StaticCaseFactor(model.ActiveLoadCase)); // props.Loads = list; // } //} ////////// END TESTS ///////////// Application.Run(frm); // Model.Model.Instance.Save(); controller.Execute("cancel"); updater.CancelDownload(); updater.InstallUpdate(); } #if DEBUG catch (View.NoDirectXSupportException ex) { MessageBox.Show(Culture.Get("strDirectXFatalError") + "\n" + ex.ToString(), Culture.Get("strFatalError"), MessageBoxButtons.OK, MessageBoxIcon.Error); } catch (Microsoft.DirectX.DirectXException ex) { MessageBox.Show(Culture.Get("strDirectXFatalError") + "\n" + ex.ToString(), Culture.Get("strFatalError"), MessageBoxButtons.OK, MessageBoxIcon.Error); } catch (NotSupportedException ex) { MessageBox.Show(ex.Message, Culture.Get("strFatalError"), MessageBoxButtons.OK, MessageBoxIcon.Error); } #else catch (View.NoDirectXSupportException ex) { MessageBox.Show(Culture.Get("strDirectXFatalError"), Culture.Get("strFatalError"), MessageBoxButtons.OK, MessageBoxIcon.Error); } catch (Microsoft.DirectX.DirectXException ex) { MessageBox.Show(Culture.Get("strDirectXFatalError"), Culture.Get("strFatalError"), MessageBoxButtons.OK, MessageBoxIcon.Error); } catch (NotSupportedException ex) { MessageBox.Show(ex.Message, Culture.Get("strFatalError"), MessageBoxButtons.OK, MessageBoxIcon.Error); } catch (Exception ex) { MessageBox.Show(ex.Message, Culture.Get("strFatalError"), MessageBoxButtons.OK, MessageBoxIcon.Error); } #endif } }
public EditSolution(MainFrm mainFrm) { this.mainFrm = mainFrm; this.rectangles = new List<rectangle>(); InitializeComponent(); }
public HandshakeManager(MainFrm main) { MainUI = main; MainUI.Connection.DataIncoming += DataIncoming; MainUI.Connection.DataOutgoing += DataOutgoing; }
public RandomDataFrm(MainFrm mainFrm) { InitializeComponent(); this.mainFrm = mainFrm; }
public EditDataFrm(MainFrm mainFrm) { this.mainFrm = mainFrm; InitializeComponent(); }
public SolutionsFrm(taio.MainFrm mainFrm) { this.mainFrm = mainFrm; InitializeComponent(); }
public CommandToolbox(MainFrm mainFrm) { InitializeComponent(); this.mainFrm = mainFrm; }
public PacketLoggerFrm(MainFrm main) { InitializeComponent(); Main = main; }