public static RenamerController Get() { if (instance == null) { instance = new RenamerController(); } return(instance); }
private void btnSelectFolder_Click(object sender, EventArgs e) { using (var dialog = new System.Windows.Forms.FolderBrowserDialog()) { System.Windows.Forms.DialogResult result = dialog.ShowDialog(); RenamerController.Get().OnFolderSelected(dialog.SelectedPath); } }
private void button1_Click(object sender, EventArgs e) { RenamerController.Get().RegenerateProject(); }
private void btnRename_Click(object sender, EventArgs e) { RenamerController.Get().OnClickRename(textBox_OldClassName.Text, textBox_NewClassName.Text); }
public Form1() { InitializeComponent(); RenamerController.Get().SetForm(this); }