예제 #1
0
        public static RenamerController Get()
        {
            if (instance == null)
            {
                instance = new RenamerController();
            }

            return(instance);
        }
예제 #2
0
        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);
            }
        }
예제 #3
0
 private void button1_Click(object sender, EventArgs e)
 {
     RenamerController.Get().RegenerateProject();
 }
예제 #4
0
 private void btnRename_Click(object sender, EventArgs e)
 {
     RenamerController.Get().OnClickRename(textBox_OldClassName.Text, textBox_NewClassName.Text);
 }
예제 #5
0
 public Form1()
 {
     InitializeComponent();
     RenamerController.Get().SetForm(this);
 }