void imageContextEdit_Click(object sender, EventArgs e) { string ImgID = ((sender as ToolStripMenuItem).GetCurrentParent() as ContextMenuStrip).SourceControl.Name; if (db.GetRows("select img_path from images where img_id = " + ImgID)) { ProcessStartInfo startInfo = new ProcessStartInfo(db.DataDirectory + db.GetCell(0, "img_path")); //startInfo.Verb = "edit"; Process.Start(startInfo); DialogResult myResult = MessageBox.Show("Launching Image Editor. After editing, click OK to reload images.", "Edit Image", MessageBoxButtons.OKCancel, MessageBoxIcon.None); if (myResult == System.Windows.Forms.DialogResult.OK) { RefreshCharList(); } } }
public Glyph(string ID, bool LoadImages) { if (db.GetRows("select * from glyphs where glyph_id = " + ID)) { this.ID = ID; this.FontID = db.GetCell(0, "glyph_font_id"); this.Unicode = db.GetCell(0, "glyph_unicode"); this.Frequency = System.Convert.ToInt32(db.GetCell(0, "glyph_frequency")); this.XOffset = System.Convert.ToInt32(db.GetCell(0, "glyph_x_offset")); this.YOffset = System.Convert.ToInt32(db.GetCell(0, "glyph_y_offset")); } if (LoadImages) { RefreshImages(); } }
public Language(string LangID) { if (db.GetRows("select * from languages where lang_id = " + LangID)) { ID = LangID; Name = db.Bucket.Rows[0]["lang_name"].ToString(); } }
public SubList() { if (db.GetRows("select * from character_subs")) { foreach (DataRow DR in db.Bucket.Rows) { Characters.Add(DR["cs_character"].ToString(), DR["cs_sub"].ToString()); } } }
public GlyphImage(string ID) { if (db.GetRows("select * from images where img_id = " + ID)) { this.ID = ID; this.GlyphID = db.GetCell(0, "img_glyph_id"); this.Path = db.GetCell(0, "img_path"); this.Status = db.GetCell(0, "img_status"); } }
public Font(string ID, bool LoadGlyphs, bool LoadImages) { if (db.GetRows("select * from fonts where font_id = " + ID)) { this.ID = ID; this.LangID = db.GetCell(0, "font_lang_id"); this.Name = db.GetCell(0, "font_name"); this.LineHeight = System.Convert.ToInt32(db.GetCell(0, "font_line_height")); this.Italic = System.Convert.ToInt32(db.GetCell(0, "font_italic")); this.Bold = System.Convert.ToInt32(db.GetCell(0, "font_bold")); this.Fixed = System.Convert.ToInt32(db.GetCell(0, "font_fixed")); this.Serif = System.Convert.ToInt32(db.GetCell(0, "font_serif")); this.Fraktur = System.Convert.ToInt32(db.GetCell(0, "font_fraktur")); } if (LoadGlyphs) { RefreshGlyphs(LoadImages); } }