GetCell() public method

public GetCell ( int Row, string Column ) : string
Row int
Column string
return string
Exemplo n.º 1
0
 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");
     }
 }
Exemplo n.º 2
0
        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();
            }
        }
Exemplo n.º 3
0
        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();
                }
            }
        }
Exemplo n.º 4
0
        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);
            }
        }