public void ShowHelp(string helpKey) { frmHelp frm = new frmHelp(); frm.SetHelp(helpKey); ShowForm(frm); }
private void helpToolStripMenuItem_Click(object sender, EventArgs e) { //Opens the help form frmHelp Help = new frmHelp(); Help.Show(); }
private void helpToolStripMenuItem_Click(object sender, EventArgs e) { if (fhelp == null || fhelp.IsDisposed) { fhelp = new frmHelp(); fhelp.MdiParent = this; fhelp.WindowState = FormWindowState.Maximized; fhelp.StartPosition = FormStartPosition.CenterScreen; fhelp.Show(); } else { fhelp.Activate(); } }
private void btnHelp_Click(object sender, EventArgs e) { frmHelp frm = new frmHelp(); string fname = profile.CurrentMethod.Name.ToString() + "." + Thread.CurrentThread.CurrentUICulture.Name.ToString(); // MessageBox.Show(fname); // MessageBox.Show(fname+".rtf","info must be in file:" ); fname = fname.Replace(".", "_"); fname = fname.Replace(" ", "_"); fname = fname.Replace("-", "_"); frmHelp.ShowHelp(Properties.Resources.ResourceManager.GetString(fname)); }
public void ShowHelp(string Message, string Title = "Help", int timeInMsec = 30000, bool LogError = false, bool Modal = false) { var Hlp = new frmHelp(mf, Message, Title, timeInMsec); if (Modal) { Hlp.ShowDialog(); } else { Hlp.Show(); } if (LogError) { WriteErrorLog(Message); } }
public void OnUpdateFinished(object sender, EventArgs e) { try { if (Program.frmMain.InvokeRequired) { EventHandler d = new EventHandler(OnUpdateFinished); Program.frmMain.Invoke(d, new object[] { sender, e }); } else { Program.frmMain.Enabled = true; frmHelp frm = new frmHelp(); frm.SetHelp("thong_tin_cap_nhat"); frm.WindowState = FormWindowState.Normal; frm.Show(); Program.frmMain.ShowHelp("thong_tin_cap_nhat"); } } catch { } }
private void ShowThongTinOnline(string message, bool showMessage) { try { if (message.Trim() != "") { frmHelp frm = new frmHelp(); frm.AllowShowMessage = false; if (frm.SetHelp(message)) { ShowForm(frm, false); } } else { if (showMessage) { MessageBox.Show("Không có thông tin nào", "Thông báo", MessageBoxButtons.OK, MessageBoxIcon.Information); } } } catch (Exception) { } }
private void menuItem10_Click(object sender, EventArgs e) { try { //System.Diagnostics.Process.Start(Memory.AppPath + "HuongDan.Doc"); frmHelp frmHelp = new frmHelp(); string helpKey = "index"; foreach (Control frm in FATabStrip.SelectedItem.Controls) { if (frm is frmBase && !(frm is frmHelp)) { helpKey = (frm as frmBase).HelpKey; break; } } frmHelp.SetHelp(helpKey); frmHelp.Show(); } catch (Exception ex) { MessageBox.Show(ex.Message, "Lỗi Exception (frmMain, menuItem10_Click)", MessageBoxButtons.OK, MessageBoxIcon.Error); } }
/// <summary> /// 打开帮助界面 /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void btnHelp_Click(object sender, EventArgs e) { frmHelp help = new frmHelp(); help.ShowDialog(); }
private void howToUseDatabaseToolStripMenuItem_Click(object sender, EventArgs e) { frmHelp frmHelp = new frmHelp(); frmHelp.Show(); }
private void btnHelp_Click(object sender, EventArgs e) { //create an instance of the help form Form helpForm = new frmHelp(); DialogResult button = helpForm.ShowDialog();//display as a dialog box }
/// <summary> /// Shows the help information form /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void btnHelp_Click(object sender, EventArgs e) { var help = new frmHelp(); help.Show(); }
private void LoadFunction(string key) { if (key == "itNhapGiaoHo") { frmGiaoHo frm = new frmGiaoHo(); ShowForm(frm); } else if (key == "itNhapGiaoDan") { frmGiaoDanList frm = new frmGiaoDanList(); ShowForm(frm); } else if (key == "itNhapGiaDinh") { frmGiaDinhList frm = new frmGiaDinhList(); ShowForm(frm); } else if (key == "itNhapGiaoXu") { frmGiaoXu frm = new frmGiaoXu(); ShowForm(frm); } else if (key == "itSoBiTich") { frmDotBiTichList frm = new frmDotBiTichList(); ShowForm(frm); } else if (key == "itThongKeChung") { frmThongKeChung frm = new frmThongKeChung(); ShowForm(frm); } else if (key == "itLuuTruGiaoDan") { frmGiaoDanLuuTruList frm = new frmGiaoDanLuuTruList(); ShowForm(frm); } else if (key == "itLuuTruGiaDinh") { frmGiaDinhLuuTruList frm = new frmGiaDinhLuuTruList(); ShowForm(frm); } else if (key == "itTimGiaoDan") { frmTimGiaoDan.ShowDialog(); } else if (key == "itTimGiaDinhCuaGiaoDan") { frmTimGiaDinh.ShowDialog(); } else if (key == "itTimThayThe") { frmReplace.ShowDialog(); } else if (key == "itKiemTraGiaoDan") { frmKiemTraGiaoDanList frm = new frmKiemTraGiaoDanList(); ShowForm(frm); } else if (key == "itKiemTraGiaDinh") { frmKiemTraGiaDinhList frm = new frmKiemTraGiaDinhList(); ShowForm(frm); } else if (key == "itKiemTraPhienBan") { GxCheckVersion checkVersion = new GxCheckVersion(); checkVersion.Alert = true; checkVersion.OnFinished += new EventHandler(checkVersion_OnFinished); checkVersion.Execute(); } else if (key == "itAboutUs") { frmAbout frm = new frmAbout(); frm.ShowDialog(); } else if (key == "itGopY") { //frmGopY frm = new frmGopY(); //frm.ShowDialog(); try { //System.Diagnostics.Process.Start(Memory.AppPath + "HuongDan.Doc"); if (Memory.IsConnectionAvailable()) { frmHelp frmHelp = new frmHelp(); string helpKey = "http://forum.qlgx.net/gopy"; ShowThongTinOnline(helpKey, true); } else { MessageBox.Show("Bạn không có kết nối internet, vì thế không sử dụng được chức năng này. Bạn có thể liên hệ với tác giả qua email " + GxConstants.EMAIL + "\n Xin chân thành cảm ơn!"); } } catch (Exception) { } } else if (key == "itHuongDan") { menuItem10_Click(this, EventArgs.Empty); } else if (key == "itRaoHonPhoi") { frmRaoHonPhoiList frm = new frmRaoHonPhoiList(); ShowForm(frm); } else if (key == "itChuanHoaDuLieuGiaoDan") { chuanHoaDuLieu(ProcessOptions.AutoUpperFirstCharGiaoDan); } else if (key == "itChuanHoaDuLieuGiaDinh") { chuanHoaDuLieu(ProcessOptions.AutoUpperFirstCharGiaDinh); } else if (key == "itChuyenHoGiaoDan") { frmChuyenHoGiaoDan frm = new frmChuyenHoGiaoDan(); ShowForm(frm); } else if (key == "itChuyenHoGiaDinh") { frmChuyenHoGiaDinh frm = new frmChuyenHoGiaDinh(); ShowForm(frm); } else if (key == "itGiaoLy") { GiaoLy.frmKhoiGiaoLyList frm = new GiaoLy.frmKhoiGiaoLyList(); ShowForm(frm); } else if (key == "itThongTinOnline") { //Check message from website start if (Memory.IsConnectionAvailable()) { GxKiemTraThongBao kiemTraThongBao = new GxKiemTraThongBao(); kiemTraThongBao.OnFinished += new EventHandler(kiemTraThongBao_OnFinished1); ThreadStart threadStart = new ThreadStart(kiemTraThongBao.Execute); Thread thread = new Thread(threadStart); thread.Start(); } else { MessageBox.Show("Bạn không có kết nối internet", "Thông báo", MessageBoxButtons.OK, MessageBoxIcon.Information); } //Check message from website end } else if (key == "itLapBiTichTuDong") { frmTaoDotBiTich frm = new frmTaoDotBiTich(); frm.ShowDialog(); } else if (key == "itBieuDo") { frmBieuDo frm = new frmBieuDo(); frm.StartPosition = FormStartPosition.CenterScreen; frm.ShowDialog(); } }