示例#1
0
 public static void Execute()
 {
     if (f == null)
     {
         f = new SDCard();
         Main.conn.eventResponse += f.analyzeEvent;
         f.RefreshFilenames();
     }
     f.Show();
 }
示例#2
0
 public static void Execute()
 {
     if (f == null)
     {
         f = new SDCard();
         Main.conn.eventResponse += f.analyzeEvent;
         f.RefreshFilenames();
     }
     f.Show();
 }
示例#3
0
 public static void Execute()
 {
     if (f == null)
     {
         f = new SDCard();
         Main.connection.eventResponse += f.analyzeEvent;
     }
     f.RefreshFilenames();
     f.Show();
     f.BringToFront();
     f.updateButtons();
 }
示例#4
0
        private void toolNewFolder_Click(object sender, EventArgs e)
        {
            string foldername = StringInput.GetString(Trans.T("L_CREATE_FOLDER"), Trans.T("L_CREATE_FOLDER_INFO")).ToLower();

            if (foldername.Length == 0)
            {
                return;
            }
            int p = foldername.IndexOf('.');

            if (!SDCard.validate83Filename(foldername))
            {
                MessageBox.Show(Trans.T("L_NOT_VALID_83_FILENAME"), Trans.T("L_ERROR"), MessageBoxButtons.OK, MessageBoxIcon.Error);
                return;
            }
            Main.connection.injectManualCommand("M32 " + (currentDirectory.Length > 0?"/":"") + currentDirectory + foldername);
            RefreshFilenames();
        }
示例#5
0
 public static void Execute()
 {
     if (f == null)
     {
         f = new SDCard();
         Main.conn.eventResponse += f.analyzeEvent;
     }
     f.RefreshFilenames();
     f.Show();
     f.BringToFront();
     f.updateButtons();
 }