internal void BringToFront(ref hanzi2tghz tghz, string input, List <string> colors, Dictionary <string, string> zydict) { this.Show(); this.BringToFront(); this.TopMost = true; colours = colors; List <Tuple <Chinese, List <Pinyin> > > hzpi = tghz.hanziWithPinyin(input); set = new HashSet <Tuple <Chinese, List <Pinyin> > >(hzpi); zhuyindict = zydict; makeTable(); }
public toneCorrectionForm(ref hanzi2tghz tghz, bool correctionson) { this.correctionson = correctionson; this.tghz = tghz; InitializeComponent(); _datalist = new List <onCharPinyin>(); foreach (Tuple <string, bool, string> x in tghz.getCorrections()) { _datalist.Add(new onCharPinyin(x.Item2, x.Item1, x.Item3)); } bindingSource = new BindingSource(); bindingSource.DataSource = _datalist; dataGridView.DataSource = bindingSource; }
private void RibbonMain_Load(object sender, RibbonUIEventArgs e) { tghz = new hanzi2tghz (dictpath , Environment.GetFolderPath(Environment.SpecialFolder.Personal) + "\\tghzToneCorrections.txt" , AppDomain.CurrentDomain.BaseDirectory + "\\bopomofo.u8" ); if (ApplicationDeployment.IsNetworkDeployed) { Version currentver = ApplicationDeployment.CurrentDeployment.CurrentVersion; vlabel.Label = string.Format("Version: {0}.{3}", currentver.Major, currentver.Minor, currentver.Build, currentver.Revision); } else { vlabel.Label = "Devel Version"; } if (colorform == null || colorform.IsDisposed == true) { colorform = new colorForm(); } }