private void Sdf_Click(object sender, RoutedEventArgs e) { PictureAddFont.getInstance()._base_top = int.Parse(base_top.Text); PictureAddFont.getInstance()._base_left = int.Parse(base_left.Text); PictureAddFont.getInstance()._left_space = int.Parse(space_left.Text); PictureAddFont.getInstance()._top_space = int.Parse(space_top.Text); PictureAddFont.getInstance().PicAddFonts(text_msg.Text, "123456", @"D:\cover.png"); }
public static PictureAddFont getInstance() { if (sClass == null) { lock (locks) { if (sClass == null) { sClass = new PictureAddFont(); return(sClass); } } } return(sClass); }