private void buttonSetting_Click(object sender, RoutedEventArgs e)
        {
            winConf.ShowDialog();

            winConf = new WindowConfig();

            ConnectionString = winConf.ConnectionString;
        }
        private void Window_Loaded(object sender, RoutedEventArgs e)
        {
            #region Images
            // ButtonStart
            Grid newGrid = new Grid()
            {
                Margin = new Thickness(5)
            };
            buttonOk.Content = newGrid;
            newGrid.RowDefinitions.Add(new RowDefinition()
            {
                Height = new GridLength(1, GridUnitType.Star)
            });
            Image newImage = new Image()
            {
            };
            newGrid.Children.Add(newImage);
            newImage.Source = new BitmapImage(new Uri("bin/Resource/Pen.png", UriKind.Relative))
            {
                CreateOptions = BitmapCreateOptions.IgnoreImageCache
            };
            Grid.SetRow(newImage, 0);

            //Button-RadioButton Word
            Grid newGrid_offline = new Grid()
            {
                Margin = new Thickness(5)
            };
            radioButtonOffline.Content = newGrid_offline;
            newGrid_offline.RowDefinitions.Add(new RowDefinition()
            {
                Height = new GridLength(1, GridUnitType.Star)
            });
            Image newImage_offline = new Image()
            {
            };
            newGrid_offline.Children.Add(newImage_offline);
            newImage_offline.Source = new BitmapImage(new Uri("bin/Resource/Word 2007.png", UriKind.Relative))
            {
                CreateOptions = BitmapCreateOptions.IgnoreImageCache
            };
            Grid.SetRow(newImage_offline, 0);

            //Button-RadioButton Online
            Grid newGrid_online = new Grid()
            {
                Margin = new Thickness(5)
            };
            radioButtonOnline.Content = newGrid_online;
            newGrid_online.RowDefinitions.Add(new RowDefinition()
            {
                Height = new GridLength(1, GridUnitType.Star)
            });
            Image newImage_online = new Image()
            {
            };
            newGrid_online.Children.Add(newImage_online);
            newImage_online.Source = new BitmapImage(new Uri("bin/Resource/Clipboard.png", UriKind.Relative))
            {
                CreateOptions = BitmapCreateOptions.IgnoreImageCache
            };
            Grid.SetRow(newImage_online, 0);

            //Button Save
            Grid newGrid_save = new Grid()
            {
                Margin = new Thickness(5)
            };
            buttonSave.Content = newGrid_save;
            newGrid_save.RowDefinitions.Add(new RowDefinition()
            {
                Height = new GridLength(1, GridUnitType.Star)
            });
            Image newImage_save = new Image()
            {
            };
            newGrid_save.Children.Add(newImage_save);
            newImage_save.Source = new BitmapImage(new Uri("bin/Resource/My Documents.png", UriKind.Relative))
            {
                CreateOptions = BitmapCreateOptions.IgnoreImageCache
            };
            Grid.SetRow(newImage_save, 0);
            #endregion

            winConf = new WindowConfig();

            ConnectionString = winConf.ConnectionString;
        }