예제 #1
0
 public static void EnterPath()
 {
     if (PresetPath.Count == 0)
     {
         string defaultValue = "";
         string path         = Interaction.InputBox("Path: ", "Please enter a path for presets", defaultValue, -1, -1);
         PresetPath.Add(path);
         SavePath();
     }
 }
예제 #2
0
        public static void ChangePath()
        {
            Form  form1 = (Form1)Application.OpenForms["Form1"];
            Label l1    = (Label)form1.Controls["label1"];

            PresetPath.Clear();
            if (PresetPath.Count == 0)
            {
                string defaultValue = "";
                string path         = Interaction.InputBox("Path: ", "Please enter a path for presets", defaultValue, -1, -1);
                PresetPath.Add(path);
                SavePath();
                l1.Text = "Current Preset Path: " + PresetPath[0];
            }
        }