Beispiel #1
0
        private void InsertFilenameBtn_Click(object sender, EventArgs e)
        {
            OpenFileDialog dlgOpenFile = new OpenFileDialog();

            if (dlgOpenFile.ShowDialog() == DialogResult.OK)
            {
                PropertyText.Paste(dlgOpenFile.FileNames[0]);
            }
        }
Beispiel #2
0
        private void InsertPathBtn_Click(object sender, EventArgs e)
        {
            FolderBrowserDialog dlgFolder = new FolderBrowserDialog();

            dlgFolder.ShowNewFolderButton = false;

            if (dlgFolder.ShowDialog() == DialogResult.OK)
            {
                PropertyText.Paste(dlgFolder.SelectedPath);
            }
        }
        private void InsertFilenameBtn_Click(object sender, EventArgs e)
        {
            OpenFileDialog dlgOpenFile = new OpenFileDialog();

            if (!String.IsNullOrEmpty(Filter))
            {
                dlgOpenFile.Filter = Filter;
            }

            if (dlgOpenFile.ShowDialog() == DialogResult.OK)
            {
                PropertyText.Paste(dlgOpenFile.FileNames[0]);
            }
        }
 private void MacrosList_DoubleClick(object sender, EventArgs e)
 {
     PropertyText.Paste(MacrosList.SelectedItems[0].Text);
 }
 private void InsertMacroButton_Click(object sender, EventArgs e)
 {
     PropertyText.Paste(MacrosList.SelectedItems[0].Text);
 }
Beispiel #6
0
 protected string BuildInputProperty(CstProperty prop)
 {
     return(PropertyText.Replace("§NAME§", prop.Name).Replace("§TYPE§", prop.Type));
 }