public static void Execute() { if (f == null) { f = new SDCard(); Main.conn.eventResponse += f.analyzeEvent; } f.RefreshFilenames(); f.Show(); f.BringToFront(); f.updateButtons(); }
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.conn.injectManualCommand("M32 " + (currentDirectory.Length > 0?"/":"") + currentDirectory + foldername); RefreshFilenames(); }