示例#1
0
        public AddSnippetForm(UDKSnipForm p_MasterForm, string p_SnipName)
        {
            InitializeComponent();
            this.m_MasterForm = p_MasterForm;
            this.Text = "Edit Snippet: " + p_SnipName;

            this.textBoxName.Text = p_SnipName;
            this.textBoxName.ReadOnly = true;
            this.buttonPasteScreenshot.Enabled = false;

            StreamReader v_DescReader = File.OpenText(Settings.SnippetPath + p_SnipName + ".desc");
            this.textBoxDesc.Text = v_DescReader.ReadToEnd();
            v_DescReader.Close();
            StreamReader v_SnipReader = File.OpenText(Settings.SnippetPath + p_SnipName + ".snip");
            this.textBoxCode.Text = v_SnipReader.ReadToEnd();
            v_SnipReader.Close();

            if (File.Exists(Settings.SnippetPath + p_SnipName + ".jpg"))
            {
                this.pictureBoxScreenshot.Image = Image.FromFile(Settings.SnippetPath + p_SnipName + ".jpg");
            }
        }
示例#2
0
 public AddSnippetForm(UDKSnipForm p_MasterForm)
 {
     InitializeComponent();
     this.m_MasterForm = p_MasterForm;
 }