Exemple #1
0
 public ImageNesting(string path, string filter = "*.png", int deep = 0)
 {
     m_path = path;
     m_filter = filter;
     m_deep = deep;
     InitializeComponent();
     this.Owner = MainWindow.s_pW;
     s_pW = this;
 }
Exemple #2
0
 private void mx_root_Unloaded(object sender, RoutedEventArgs e)
 {
     s_pW = null;
 }
Exemple #3
0
 private void mx_root_Loaded(object sender, RoutedEventArgs e)
 {
     s_pW = this;
 }
Exemple #4
0
 private void mx_btnNesting_Click(object sender, RoutedEventArgs e)
 {
     if (Project.Setting.s_projPath != null && Project.Setting.s_projPath != "")
     {
         if (!System.IO.Directory.Exists(Project.Setting.s_projPath + "\\images\\"))
         {
             Directory.CreateDirectory(Project.Setting.s_projPath + "\\images\\");
         }
         ImageTools.ImageNesting winNesting = new ImageTools.ImageNesting(Project.Setting.s_projPath + "\\images\\", "*.png", 1);
         winNesting.ShowDialog();
     }
 }